/* =============================================================
   AMIT MAHATO — CRISP LIGHT EXECUTIVE STUDIO DESIGN SYSTEM
   Supports Ultra-Responsive Desktop, Laptop, Tablet & Mobile Layouts
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- LIGHT MODE (Default) --- */
:root, [data-theme="light"] {
  --bg-main:       #f8fafc;
  --bg-header:     rgba(15, 23, 42, 0.96);
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-pill:       #e2e8f0;
  --bg-input:      #f8fafc;

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-card:   #e2e8f0;
  --border-active: #2563eb;

  /* Brand Accents */
  --royal-blue:    #2563eb;
  --blue-light:    #3b82f6;
  --cyan:          #0284c7;
  --indigo:        #4f46e5;
  --emerald:       #059669;
  --amber:         #d97706;

  /* Gradients */
  --grad-brand:    linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #4f46e5 100%);
  --grad-text:     linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #1e40af 100%);

  /* Text Colors — High Contrast Deep Slate */
  --text-primary:  #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full:9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  /* Fonts */
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Plus Jakarta Sans', sans-serif;

  --tr: 0.25s ease;
}

/* --- DARK MODE OVERRIDE --- */
[data-theme="dark"] {
  --bg-main:       #0a0f1d;
  --bg-header:     rgba(10, 15, 29, 0.94);
  --bg-surface:    #10172a;
  --bg-card:       #141d33;
  --bg-card-hover: #1c2744;
  --bg-pill:       rgba(255, 255, 255, 0.08);
  --bg-input:      #0e1426;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card:   #253352;
  --border-active: #38bdf8;

  --text-primary:  #ffffff;
  --text-secondary:#cbd5e1;
  --text-muted:    #94a3b8;

  --grad-text:     linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ─── DARK MODE: Nav deepens further on explicit dark mode ─── */
[data-theme="dark"] .top-header {
  background: rgba(5, 8, 20, 0.97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 32px rgba(0, 0, 0, 0.65) !important;
}
[data-theme="dark"] .header-logo:hover .logo-name { color: #7dd3fc !important; }
[data-theme="dark"] .logo-name { color: #f1f5f9 !important; }
[data-theme="dark"] .logo-sub  { color: #38bdf8  !important; }
[data-theme="dark"] .brand-blue { color: #93c5fd !important; }
[data-theme="dark"] .nav-item { color: #e2e8f0 !important; font-weight: 800 !important; background: transparent !important; }
[data-theme="dark"] .nav-item:hover { color: #ffffff !important; background: rgba(255,255,255,0.08) !important; }
[data-theme="dark"] .nav-item.active {
  color: #ffffff !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: none !important; box-shadow: none !important;
}
[data-theme="dark"] .nav-item i { color: #38bdf8 !important; }
[data-theme="dark"] .nav-item:hover i { color: #7dd3fc !important; }
[data-theme="dark"] .nav-item.active i { color: #38bdf8 !important; }
[data-theme="dark"] .theme-toggle-btn {
  color: #64748b !important;
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(56,189,248,0.12) !important;
  color: #38bdf8 !important;
  border-color: rgba(56,189,248,0.28) !important;
  transform: rotate(18deg) scale(1.08);
}
[data-theme="dark"] .mobile-menu-btn { color: #e2e8f0 !important; }
[data-theme="dark"] .nav-wrapper { background: transparent !important; border: none !important; box-shadow: none !important; }
/* Footer text in dark mode */
[data-theme="dark"] .footer-brand-title,
[data-theme="dark"] .footer-col-title {
  color: #f1f5f9;
}
[data-theme="dark"] .footer-nav-list a {
  color: #94a3b8;
}
[data-theme="dark"] .footer-nav-list a:hover {
  color: #60a5fa;
}
[data-theme="dark"] .footer-copy-text {
  color: #64748b;
}
[data-theme="dark"] .footer-admin-link,
[data-theme="dark"] .footer-back-top {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: #94a3b8;
}
[data-theme="dark"] .footer-admin-link:hover,
[data-theme="dark"] .footer-back-top:hover {
  color: #60a5fa;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.1);
}
/* Page hero banner in dark mode */
[data-theme="dark"] .page-hero {
  background-color: #061122 !important;
  background-image: linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .page-breadcrumb a {
  color: #38bdf8;
}
/* Section tags in dark mode */
[data-theme="dark"] .section-tag {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}
/* Form inputs in dark mode */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  color: #ffffff;
  border-color: #253352;
}
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #64748b;
}
[data-theme="dark"] .form-label {
  color: #ffffff;
}
/* Status badge in dark mode */
[data-theme="dark"] .status-badge {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.3);
}
/* Stat item in dark mode */
[data-theme="dark"] .stat-item {
  background: #141d33 !important;
  border-color: #253352 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
/* Chip pills in dark mode */
[data-theme="dark"] .chip-pill {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
  border-color: rgba(99,133,255,0.25);
  color: #7ca8ff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
[data-theme="dark"] .chip-pill:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.2));
  border-color: rgba(99,133,255,0.45);
}
/* Spec cards in dark mode */
[data-theme="dark"] .spec-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
[data-theme="dark"] .spec-link {
  color: #38bdf8;
}
[data-theme="dark"] .spec-card:hover {
  border-color: #38bdf8;
}
/* Skill icons in dark mode */
[data-theme="dark"] .skill-icon,
[data-theme="dark"] .skill-domain-tag,
[data-theme="dark"] .skill-percent {
  color: #38bdf8;
}
/* ─── Dark Mode: Contact Section ─────────────────────────────── */
[data-theme="dark"] .contact-icon {
  background: linear-gradient(135deg, rgba(56,189,248,0.15) 0%, rgba(37,99,235,0.15) 100%);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56,189,248,0.15);
}

[data-theme="dark"] .contact-card {
  background: linear-gradient(135deg, #141d33 0%, #111827 100%);
  border: 1px solid rgba(56,189,248,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
}

[data-theme="dark"] .contact-card:hover {
  background: linear-gradient(135deg, #1a2540 0%, #16213a 100%);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(56,189,248,0.1);
  transform: translateY(-3px);
}

[data-theme="dark"] .contact-details h4 {
  color: #38bdf8;
  letter-spacing: 0.08em;
}

[data-theme="dark"] .contact-details p {
  color: #e2e8f0;
}

/* Dark mode: Contact form card */
[data-theme="dark"] .contact-form-card {
  background: linear-gradient(145deg, #111827 0%, #0d1527 100%);
  border: 1px solid rgba(56,189,248,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}

[data-theme="dark"] .contact-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Dark mode: Form inputs with glow on focus */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: rgba(14,20,38,0.9);
  border: 1px solid rgba(56,189,248,0.15);
  color: #e2e8f0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] .form-input:hover,
[data-theme="dark"] .form-textarea:hover {
  border-color: rgba(56,189,248,0.3);
  background: rgba(14,20,38,1);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18), inset 0 2px 6px rgba(0,0,0,0.2);
  background: rgba(10,15,29,0.95);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #4a5568;
}

[data-theme="dark"] .form-label {
  color: #94a3b8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dark mode: Submit button */
[data-theme="dark"] .contact-form-card .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 4px 18px rgba(37,99,235,0.45);
  border: none;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] .contact-form-card .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 6px 26px rgba(37,99,235,0.6);
  transform: translateY(-2px);
}

/* Dark mode: Social buttons on contact page */
[data-theme="dark"] .social-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  transition: all 0.25s ease;
}
/* dark mode hover is handled per-brand above; fallback for unknown icons */
[data-theme="dark"] .social-btn:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37,99,235,0.4);
}

/* Dark mode: Follow Online label */
[data-theme="dark"] .contact-card h4[style] {
  color: #38bdf8 !important;
}

/* Dark mode: Success banner */
[data-theme="dark"] .form-success-banner {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
  box-shadow: 0 4px 16px rgba(16,185,129,0.15);
}
/* Feature & Edu icons in dark mode */
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .edu-icon,
[data-theme="dark"] .bento-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
/* About contact row icons */
[data-theme="dark"] .about-contact-row i {
  color: #38bdf8;
}
/* Timeline dot & dates */
[data-theme="dark"] .timeline-dot {
  background: #38bdf8;
  border-color: #0a0f1d;
}
[data-theme="dark"] .timeline-date,
[data-theme="dark"] .timeline-company i,
[data-theme="dark"] .edu-period,
[data-theme="dark"] .edu-institution i {
  color: #38bdf8;
}
/* Project & gallery tags */
[data-theme="dark"] .project-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}
/* Filter & tab buttons active in dark mode */
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #818cf8 100%);
  color: #ffffff;
}
/* Toast in dark mode */
[data-theme="dark"] .toast-box {
  background: #141d33;
  border-color: #38bdf8;
  color: #ffffff;
}
/* Form success banner in dark */
[data-theme="dark"] .form-success-banner {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.3);
}


/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 110%; }
body.portfolio-body {
  font-family: var(--font-b);
  background-color: var(--bg-main);
  background-image: url('../images/hex-pattern.svg');
  background-size: 48px 84px;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); font-weight: 700; line-height: 1.15; color: var(--text-primary); }

#bg-canvas {
  display: none;  /* hex pattern now handled via CSS background-image */
}

.brand-blue { color: var(--royal-blue); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

/* ================================================================
   TOP HEADER NAVIGATION — Stripe / Vercel / Linear Premium Style
   ================================================================ */

/* ── Keyframes ── */
@keyframes nav-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Header Shell ──
   Inspired by Stripe's deep navy (#0a2540) + Vercel's frosted-glass blur
   — dark always so it looks premium on ANY page background             */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Deep navy à la Stripe — frosted & rich */
  background: rgba(10, 18, 40, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  /* Ultra-subtle top highlight + bottom glow like Linear/Framer */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 32px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 72px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 0;
}

/* ──────────────────────────────
   LOGO  (always white text on dark bg)
   ────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo:hover .logo-name {
  color: #7dd3fc; /* sky-300 — hover accent */
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;            /* squircle — modern, not circular */
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 14px rgba(37,99,235,0.45);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-logo:hover .logo-box {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 6px 20px rgba(37,99,235,0.6);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Enlarged Brand Name */
.logo-name {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}

/* Enlarged Subtitle */
.logo-sub {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ──────────────────────────────
   RIGHT-ALIGNED NAV (toward Connect With Me)
   ────────────────────────────── */
.nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 24px;
}

.nav-wrapper .nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;                   /* spacing between nav items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-wrapper .nav-list li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Nav Items with Refined Spacing & Bold Weight */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 800 !important;
  color: #e2e8f0;
  padding: 7px clamp(10px, 1.2vw, 20px);
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Glow-dot active indicator */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2.5px;
  border-radius: 99px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.22s ease;
  opacity: 0;
}

.nav-item i {
  font-size: 0.90rem;
  color: #38bdf8;
  transition: color 0.18s ease;
}

/* Hover */
.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-item:hover i {
  color: #7dd3fc;
}

/* Active */
.nav-item.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-weight: 800 !important;  /* Extra bold active */
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1) !important;
  opacity: 1 !important;
}

.nav-item.active i {
  color: #38bdf8 !important;
}

/* Nav containers — always transparent shell */
.nav-list,
#main-nav-menu,
[data-theme="dark"] .nav-list,
[data-theme="dark"] #main-nav-menu {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ──────────────────────────────
   RIGHT CTA GROUP
   ────────────────────────────── */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

/* ─── INTERMEDIATE DESKTOP COMPRESSION (1025px – 1280px) ─────── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .header-container {
    padding: 0 24px !important;
  }
  .nav-item {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
  }
  .nav-wrapper {
    margin-right: 12px !important;
  }
  .btn-nav-contact {
    font-size: 0.82rem !important;
    padding: 7px 14px !important;
  }
}

/* Theme toggle removed */
.theme-toggle-btn {
  display: none !important;
}

/* CTA Button — Royal Blue pill style matching Connect With Me */
.btn-nav-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 8px;
  background: #0d6efd;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.90rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.45);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
}

.btn-nav-contact span {
  font-weight: 800 !important;
}

/* Shimmer sweep on the blue button */
.btn-nav-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: nav-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.btn-nav-contact:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.65);
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════
   PROFILE DROPDOWN — Navbar
   ══════════════════════════════════════════════════════ */

/* Wrapper — provides the positioning context */
.nav-profile-wrap {
  position: relative;
}

/* ── Trigger Button ── */
.nav-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
  transition: all 0.25s ease;
}

.nav-profile-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.48);
}

.nav-profile-trigger.open {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 8px 26px rgba(37, 99, 235, 0.42);
}

/* Avatar ring */
.nav-profile-avatar-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: block;
  pointer-events: none;
}

.nav-avatar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
}

/* Green online dot on avatar */
.nav-avatar-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

/* Animated caret */
.nav-profile-caret {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.90);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-profile-trigger.open .nav-profile-caret {
  transform: rotate(180deg);
}

/* ── Dropdown Panel ── */
.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13), 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 6px;
  z-index: 9999;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s;
  pointer-events: none;
}

.nav-profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header row inside dropdown ── */
.npd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 12px;
}

/* Large avatar in dropdown */
.npd-avatar-lg {
  position: relative;
  flex-shrink: 0;
}

.npd-avatar-lg img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--royal-blue, #2563eb);
  pointer-events: none;
}

.npd-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand, linear-gradient(135deg,#2563eb,#4f46e5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  border: 2px solid transparent;
}

.npd-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-surface, #fff);
}

/* Name / email / role */
.npd-identity {
  flex: 1;
  min-width: 0;
}

.npd-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}

.npd-email {
  font-size: 0.74rem;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 6px;
}

.npd-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: 20px;
  padding: 2px 8px;
}

/* Divider */
.npd-divider {
  height: 1px;
  background: var(--border-subtle, #e2e8f0);
  margin: 2px 8px;
}

/* ── Navigation links ── */
.npd-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}

.npd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary, #0f172a);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.npd-link:hover {
  background: rgba(37, 99, 235, 0.07);
  color: var(--royal-blue, #2563eb);
  transform: translateX(2px);
}

.npd-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--royal-blue, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.npd-link:hover .npd-link-icon {
  background: rgba(37, 99, 235, 0.15);
}

.npd-link-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.npd-link:hover .npd-link-arrow {
  opacity: 0.55;
  transform: translateX(2px);
}

/* ── Logout button ── */
.npd-logout-form {
  padding: 4px 0 2px;
}

.npd-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: left;
}

.npd-logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  transform: translateX(2px);
}

.npd-icon-danger {
  background: rgba(239, 68, 68, 0.10) !important;
  color: #ef4444 !important;
}

.npd-logout-btn:hover .npd-icon-danger {
  background: rgba(239, 68, 68, 0.18) !important;
}

/* ── Dark mode adjustments ── */
[data-theme="dark"] .nav-profile-dropdown {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
}

[data-theme="dark"] .npd-name   { color: #f1f5f9; }
[data-theme="dark"] .npd-email  { color: #94a3b8; }
[data-theme="dark"] .npd-divider { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .npd-link   { color: #e2e8f0; }
[data-theme="dark"] .npd-link:hover { color: #93c5fd; background: rgba(96,165,250,0.08); }
[data-theme="dark"] .npd-link-icon  { background: rgba(96,165,250,0.10); color: #93c5fd; }
[data-theme="dark"] .npd-link:hover .npd-link-icon { background: rgba(96,165,250,0.18); }
[data-theme="dark"] .npd-avatar-fallback { border-color: rgba(96,165,250,0.35); }
[data-theme="dark"] .npd-online-badge { border-color: #1e293b; }
[data-theme="dark"] .nav-avatar-online-dot { border-color: transparent; }
[data-theme="dark"] .npd-logout-btn { color: #f87171; }
[data-theme="dark"] .npd-logout-btn:hover { background: rgba(248,113,113,0.10); }



/* ================================================================
   SECTION LAYOUT & CARDS
   ================================================================ */
.main-content-flow {
  position: relative;
  z-index: 1;
}

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

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
}

.glass-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--royal-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ================================================================
   1. HERO SECTION — Reference Image Style (Dark Navy + Big Circle)
   ================================================================ */
.hero-section {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 110px 72px 25px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  /* Deep midnight navy background with subtle tech hexagonal mesh texture */
  background-color: #061122 !important;
  background-image:
    url('../images/hex-pattern.svg'),
    linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  background-size: 48px 84px, 100% 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Maintain dark navy hero aesthetic across themes for consistency */
[data-theme="light"] .hero-section {
  background-color: #061122 !important;
  background-image:
    url('../images/hex-pattern.svg'),
    linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  background-size: 48px 84px, 100% 100% !important;
}

/* ── Hero Grid ── */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Left Content Typography (Refined Reference Style) ── */
.hero-greeting {
  font-size: 1.15rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
  font-family: var(--font-h);
}

.hero-role-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  min-height: 2.3rem;
  letter-spacing: -0.01em;
}

.typewriter-text {
  color: #38bdf8;
  font-weight: 700;
  border-right: 2px solid #38bdf8;
  padding-right: 4px;
  animation: typewriterBlink 0.8s infinite;
}

@keyframes typewriterBlink {
  0%, 100% { border-color: #38bdf8; }
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 34px;
  text-align: justify;
  text-justify: inter-word;
}

.hero-desc p {
  margin: 0 0 16px 0;
  text-align: inherit;
  text-justify: inherit;
  line-height: inherit;
  color: inherit;
  font-size: inherit;
}

.hero-desc p:last-child {
  margin-bottom: 0;
}

.hsc-bio,
.ab-bio,
.about-text {
  text-align: justify;
  text-justify: inter-word;
}

.hsc-bio p,
.ab-bio p,
.about-text p {
  margin: 0 0 14px 0;
  text-align: inherit;
  text-justify: inherit;
  line-height: inherit;
  color: inherit;
  font-size: inherit;
}

.hsc-bio p:last-child,
.ab-bio p:last-child,
.about-text p:last-child {
  margin-bottom: 0;
}

/* ── CTA Buttons ── */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 8px;
  background: #0d6efd !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 110, 253, 0.45);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary:hover {
  background: #0b5ed7 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(13, 110, 253, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item,
.hero-stats .stat-item,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .hero-stats .stat-item,
[data-theme="light"] .hero-stats .stat-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.stat-item h3 {
  font-size: 2.1rem;
  color: #ffffff !important;
  margin-bottom: 2px;
}

.stat-number {
  color: #ffffff !important;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.8rem;
  color: #94a3b8 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================
   RIGHT COLUMN: HERO PHOTO & THE BIG CIRCLE BACKDROP
   ================================================================ */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 660px;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
  transform: translateY(-30px);
}

/* The Circle Backdrop Container */
.hero-circle-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

/* The Big Circle (Slightly Reduced Size) */
.hero-big-circle {
  width: 510px;
  height: 510px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #0f3066 0%, #0a2147 60%, #061329 100%);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.22),
    0 24px 65px rgba(2, 6, 23, 0.88),
    inset 0 0 50px rgba(14, 165, 233, 0.16);
  position: absolute;
}

/* Dashed Outer Orbital Ring */
.hero-circle-ring {
  width: 590px;
  height: 590px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.24);
  position: absolute;
  animation: rotateCircleRing 50s linear infinite;
}

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

/* Ambient Radial Glow */
.hero-circle-glow {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.38) 0%, transparent 70%);
  filter: blur(55px);
  position: absolute;
  z-index: -1;
}

/* Photo Card & Image (Enlarged) */
.hero-img-card {
  position: relative;
  z-index: 10 !important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.hero-img-card img {
  position: relative;
  z-index: 10 !important;
  width: auto;
  max-width: 115%;
  height: 720px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transform: translateY(-50px) scale(1.18);
  transform-origin: bottom center;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7));
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.img-gradient-overlay {
  display: none;
}

/* Floating Badges (Enlarged & Wrapped) */
.floating-badge {
  position: absolute;
  max-width: 360px;
  padding: 12px 18px;
  background: rgba(8, 20, 42, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  animation: float 4s ease-in-out infinite alternate;
}

.badge-1 {
  top: 5%;
  left: -115px;
  max-width: 360px;
  z-index: 2 !important;
}

.badge-2 {
  bottom: 18%;
  right: -15px;
  max-width: 350px;
  z-index: 20 !important;
  animation-delay: -2s;
}

@keyframes float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-text {
  flex: 1;
  min-width: 0;
}

.badge-text h4 {
  font-size: 0.94rem;
  color: #ffffff;
  margin: 0 0 3px 0;
  font-weight: 700;
  line-height: 1.2;
}

.badge-text p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.38;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ── Hero Responsive Adjustments: Keep 2 columns down to 660px ── */
@media (max-width: 991px) {
  .hero-section {
    padding: 110px 20px 60px 20px;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.95fr;
    gap: 24px;
    text-align: left;
  }
  .hero-image-wrapper {
    max-width: 440px;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    order: 2;
    overflow: visible;
  }
  .hero-content {
    order: 1;
  }
  .hero-big-circle {
    width: 380px;
    height: 380px;
  }
  .hero-circle-ring {
    width: 440px;
    height: 440px;
  }
  .hero-img-card img {
    height: 500px;
    transform: translateY(-55px) scale(1.15);
    transform-origin: bottom center;
  }
  .floating-badge {
    position: absolute !important;
    z-index: 20 !important;
    width: calc(50% - 5px) !important;
    max-width: none !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    animation: float 4s ease-in-out infinite alternate !important;
  }
  .floating-badge .badge-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.85rem !important;
  }
  .floating-badge .badge-text h4 {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }
  .floating-badge .badge-text p {
    font-size: 0.62rem !important;
    line-height: 1.3 !important;
  }
  .badge-1 {
    bottom: 10px !important;
    left: 2px !important;
    top: auto !important;
    right: auto !important;
  }
  .badge-2 {
    bottom: 10px !important;
    right: 2px !important;
    top: auto !important;
    left: auto !important;
  }
}

/* Single column collapse at <=660px: hide image section */
@media (max-width: 660px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    text-align: center;
  }
  .hero-content {
    order: 1 !important;
    text-align: center;
  }
  .hero-role-title {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: justify !important;
    text-justify: inter-word !important;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-image-wrapper {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 95px 16px 50px 16px;
  }
  .hero-greeting {
    font-size: 1rem;
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-image-wrapper {
    display: none !important;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

/* ================================================================
   2. BENTO OVERVIEW GRID
   ================================================================ */
/* ──────────────────────────────
   2. BENTO OVERVIEW — NUMBERED FEATURE CARDS WITH GRADIENT SIDE BORDER
   ────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.bento-card {
  position: relative;
  padding: 34px 36px 34px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #dde6f4 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Gradient Side Border on Left */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 24px 50px -12px rgba(37, 99, 235, 0.16), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

.bento-card:hover::before {
  width: 9px;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

.bento-large {
  grid-column: span 1;
}

/* Card Header with Icon & 01/02 Badge */
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(37, 99, 235, 0.12) 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.22) !important;
  color: #0284c7 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover .bento-icon {
  transform: scale(1.08) rotate(4deg);
  border-color: #0284c7 !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

/* Numbered Badge (01, 02) */
.bento-badge-num {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  transition: all 0.25s ease;
}

.bento-card:hover .bento-badge-num {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.bento-title {
  font-family: var(--font-h);
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bento-desc {
  font-size: 0.94rem;
  color: #475569 !important;
  line-height: 1.72;
  font-weight: 400;
}

.bento-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(203, 213, 225, 0.8);
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.77rem;
  font-weight: 600;
  color: #1e40af !important;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease !important;
  cursor: default;
  white-space: nowrap;
}

.chip-pill:hover {
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
  color: #0284c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.16) !important;
}

/* Dark Mode Support */
[data-theme="dark"] .bento-card {
  background: #0f172a !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .bento-title {
  color: #ffffff !important;
}
[data-theme="dark"] .bento-desc {
  color: #94a3b8 !important;
}
[data-theme="dark"] .bento-icon {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}
[data-theme="dark"] .bento-badge-num {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
  color: #38bdf8;
}
[data-theme="dark"] .bento-chips {
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .chip-pill {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.24) !important;
  color: #7dd3fc !important;
}
[data-theme="dark"] .chip-pill:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

/* ── Home Page About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-image-stack {
  width: 100%;
}

.about-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
}

.feature-item:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-info {
  flex: 1;
  min-width: 0;
}

.feature-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.feature-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.about-contact-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-contact-row i {
  color: var(--royal-blue);
}

/* ================================================================
   3. ABOUT PAGE EXCLUSIVE DESIGN — ab-* (100% independent from home page)
   ================================================================ */
.ab-section {
  padding-top: 30px;
  padding-bottom: 60px;
}

.ab-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 36px;
  align-items: start;
}

.ab-image-col {
  width: 100%;
}

.ab-img-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  padding: 10px;
  box-sizing: border-box;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 12px 36px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

.ab-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
}

.ab-content-col {
  display: flex;
  flex-direction: column;
}

.ab-header {
  margin-bottom: 20px;
}

.ab-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.ab-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 24px;
}

.ab-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 76px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ab-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.ab-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(37, 99, 235, 0.09);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ab-card-body h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.ab-card-body p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ab-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.ab-contact-row i {
  color: var(--royal-blue);
  margin-right: 6px;
}

@media (max-width: 992px) {
  .ab-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ab-img {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .ab-features-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   HOME PROFILE SHOWCASE — hsc-* (100% independent from /about page)
   ================================================================ */
.hsc-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.hsc-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.hsc-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hsc-bio {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* 3-column: left | center-image | right */
.hsc-tri-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 20px;
  height: 460px;
  margin-bottom: 36px;
  align-items: stretch;
}

/* Feature columns */
.hsc-feat-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: space-between;
}

/* Individual feature cards */
.hsc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hsc-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.hsc-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(37, 99, 235, 0.09);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hsc-card-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.hsc-card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Center image column — Fits cleanly with soft bottom fade matching Hero image */
.hsc-center-col {
  height: 100%;
  max-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.hsc-center-col::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(99, 102, 241, 0.12) 45%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}

html[data-theme="dark"] .hsc-center-col::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
}

.hsc-img-frame {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  overflow: hidden;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
  /* Seamless bottom gradient blend matching Hero image 1 */
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
}

.hsc-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.30) translateY(1.5%);
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.14));
  border-radius: 0 !important;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transition: transform 0.3s ease;
}

.hsc-img:hover {
  transform: scale(1.33) translateY(1.5%);
}

/* Contact row */
.hsc-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hsc-contact-row i {
  color: var(--royal-blue);
  margin-right: 6px;
}

.hsc-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* Responsive Home Showcase (hsc-*) */
@media (max-width: 992px) {
  .hsc-tri-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .hsc-center-col {
    order: 1 !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 16px auto !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .hsc-img-frame {
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    max-height: 420px !important;
  }
  .hsc-img {
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    transform: scale(1.08) !important;
  }
  .hsc-feat-col {
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hsc-card {
    min-height: auto !important;
    width: 100% !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }
  .hsc-contact-row {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
  }
}

/* ================================================================
   4. SKILLS MATRIX SECTION
   ================================================================ */
.skills-domain-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--tr);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ================================================================
   SKILL CARDS — EXECUTIVE TECH CARDS WITH GRADIENT TOP & GLOW
   ================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.skills-grid .skill-card,
.bg-skills .skill-card,
.skill-card {
  position: relative;
  padding: 18px 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer;
  min-height: 190px;
}

.skill-card::before {
  display: none !important;
}

.skill-card:hover {
  transform: translateY(-4px) !important;
  border-color: #2563eb !important;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Domain Tag */
.skill-domain-tag {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #2563eb !important;
  opacity: 0.9 !important;
  margin-bottom: 6px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
}

/* Header & Title */
.skill-header {
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 6px !important;
}

.skill-title {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-family: var(--font-h) !important;
  font-size: 0.90rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.skill-icon {
  font-size: 1.05rem !important;
  color: #2563eb !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* Description */
.skill-desc {
  font-size: 0.77rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 0 10px 0 !important;
  flex: 1 !important;
}

/* Action Link at Bottom Right */
.skill-card-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  margin-top: auto !important;
  padding-top: 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  align-self: flex-end !important;
  width: auto !important;
  transition: all 0.22s ease !important;
}

.skill-card:hover .skill-card-action {
  color: #1d4ed8 !important;
  transform: translateX(3px) !important;
}

.skill-card-clickable {
  cursor: pointer;
}

/* Dark Mode */
[data-theme="dark"] .skill-card {
  background: #0f172a !important;
  border-color: rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .skill-title {
  color: #ffffff !important;
}

[data-theme="dark"] .skill-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .skill-domain-tag {
  color: #38bdf8 !important;
}

[data-theme="dark"] .skill-icon {
  color: #38bdf8 !important;
}

[data-theme="dark"] .skill-card-action {
  color: #38bdf8 !important;
}

@media (max-width: 900px) {
  .skill-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   5. WORK EXPERIENCE TIMELINE
   ================================================================ */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

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

.timeline-item {
  margin-bottom: 36px;
  position: relative;
  width: 50%;
  padding: 0 24px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: left; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-item:nth-child(odd) .timeline-date { text-align: right; }

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--royal-blue);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-card {
  padding: 24px;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-company i {
  margin-right: 6px;
  color: var(--royal-blue);
}

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

.timeline-desc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.timeline-desc-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 8px;
  position: static;
  display: block;
  text-align: left;
}

.timeline-desc-list li::before {
  content: "\2022\00A0";
  color: var(--royal-blue);
  font-size: 1.05rem;
  display: inline;
  position: static;
  font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-date {
  text-align: right;
}

/* EDUCATION & CERTIFICATION GRID (2 Columns) */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 868px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* SPECIALIZED EXPERIENCE HIGHLIGHTS GRID (Original Side-by-Side Horizontal Row) */
.exp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.edu-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.edu-period {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
}

.edu-degree {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  width: 100%;
}

.edu-institution {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.edu-institution i {
  color: var(--royal-blue);
  margin-right: 6px;
}

.edu-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.edu-card .timeline-desc-list {
  width: 100%;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.edu-card .timeline-desc-list li {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── EDUCATION CARD ALT: Icon top-right, text left-aligned ── */
.edu-card-alt {
  position: relative;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

.edu-icon-tr {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.13), rgba(99,102,241,0.13));
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.edu-card-alt .edu-period {
  text-align: left;
  margin-bottom: 8px;
  padding-right: 56px; /* space for icon */
}

.edu-card-alt .edu-degree {
  text-align: left;
  font-size: 1.08rem;
  padding-right: 56px;
  margin-bottom: 6px;
}

.edu-card-alt .edu-institution {
  text-align: left;
  margin-bottom: 14px;
}

.edu-card-alt .timeline-desc-list {
  width: 100%;
  margin-top: 4px;
  padding-top: 14px;
  padding-left: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.edu-card-alt .timeline-desc-list li {
  padding-left: 1.1em;
  text-indent: -1.1em;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 6px;
  position: static;
  display: block;
  text-align: justify;
}

.edu-card-alt .timeline-desc-list li::before {
  content: "\2022\00A0";
  color: var(--royal-blue);
  font-size: 1rem;
  display: inline;
  position: static;
}

/* ================================================================
   6. PROJECTS SHOWCASE
   ================================================================ */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-thumbnail {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity var(--tr);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--tr);
}

.project-overlay-btn:hover {
  background: var(--royal-blue);
  color: #ffffff;
  transform: scale(1.1);
}

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

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-pill);
  color: var(--royal-blue);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ================================================================
   7. GALLERY SPOTLIGHT
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  height: auto;
  cursor: pointer;
  border: none;
  overflow: visible;
  background: transparent;
  gap: 12px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  transition: transform 0.5s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: relative;
  bottom: auto; left: auto; right: auto;
  padding: 0 4px;
  background: transparent;
  color: var(--text-primary);
  transform: none !important;
  opacity: 1 !important;
  transition: none;
}

.gallery-item:hover .gallery-caption {
  transform: none;
  opacity: 1;
}

.gallery-caption h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary) !important; }
.gallery-caption p  { font-size: 0.82rem; color: var(--text-secondary) !important; }

/* LIGHTBOX MODAL */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-md);
}

.lightbox-close {
  position: absolute;
  top: -44px; right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ================================================================
   8. CONTACT SECTION
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
  min-width: 0;
}

.contact-details h4 {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-details p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.social-links-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}

/* ── Contact page: brand icon colors ── */
.social-btn i.fa-linkedin-in   { color: #0a66c2; }
.social-btn i.fa-github        { color: #6e40c9; }
.social-btn i.fa-x-twitter    { color: #334155; }
.social-btn i.fa-twitter      { color: #1da1f2; }
.social-btn i.fa-facebook-f   { color: #1877f2; }
.social-btn i.fa-instagram    { color: #e4405f; }
.social-btn i.fa-youtube      { color: #ff0000; }
.social-btn i.fa-whatsapp     { color: #25d366; }
.social-btn i.fa-telegram     { color: #229ed9; }
.social-btn i.fa-envelope     { color: #ea4335; }
.social-btn i.fa-link         { color: #6366f1; }
.social-btn i.fa-tiktok       { color: #334155; }
.social-btn i.fa-pinterest    { color: #e60023; }
.social-btn i.fa-discord      { color: #5865f2; }
.social-btn i.fa-reddit       { color: #ff4500; }
.social-btn i.fa-dribbble     { color: #ea4c89; }
.social-btn i.fa-behance      { color: #1769ff; }
.social-btn i.fa-stack-overflow { color: #f58025; }

/* ── Contact page: hover ── */
.social-btn:hover { transform: translateY(-2px) scale(1.08); }
.social-btn:has(i.fa-linkedin-in):hover   { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 5px 16px rgba(10,102,194,0.4); }
.social-btn:has(i.fa-github):hover        { background: #6e40c9; border-color: #6e40c9; box-shadow: 0 5px 16px rgba(110,64,201,0.4); }
.social-btn:has(i.fa-x-twitter):hover    { background: #0f172a; border-color: #0f172a; box-shadow: 0 5px 16px rgba(15,23,42,0.4); }
.social-btn:has(i.fa-twitter):hover      { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 5px 16px rgba(29,161,242,0.4); }
.social-btn:has(i.fa-facebook-f):hover   { background: #1877f2; border-color: #1877f2; box-shadow: 0 5px 16px rgba(24,119,242,0.4); }
.social-btn:has(i.fa-instagram):hover    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e4405f; box-shadow: 0 5px 16px rgba(228,64,95,0.4); }
.social-btn:has(i.fa-youtube):hover      { background: #ff0000; border-color: #ff0000; box-shadow: 0 5px 16px rgba(255,0,0,0.4); }
.social-btn:has(i.fa-whatsapp):hover     { background: #25d366; border-color: #25d366; box-shadow: 0 5px 16px rgba(37,211,102,0.4); }
.social-btn:has(i.fa-telegram):hover     { background: #229ed9; border-color: #229ed9; box-shadow: 0 5px 16px rgba(34,158,217,0.4); }
.social-btn:has(i.fa-envelope):hover     { background: #ea4335; border-color: #ea4335; box-shadow: 0 5px 16px rgba(234,67,53,0.4); }
.social-btn:has(i.fa-link):hover         { background: linear-gradient(135deg,#6366f1,#8b5cf6); border-color: #6366f1; box-shadow: 0 5px 16px rgba(99,102,241,0.4); }
.social-btn:has(i.fa-pinterest):hover    { background: #e60023; border-color: #e60023; box-shadow: 0 5px 16px rgba(230,0,35,0.4); }
.social-btn:has(i.fa-discord):hover      { background: #5865f2; border-color: #5865f2; box-shadow: 0 5px 16px rgba(88,101,242,0.4); }
.social-btn:has(i.fa-reddit):hover       { background: #ff4500; border-color: #ff4500; box-shadow: 0 5px 16px rgba(255,69,0,0.4); }
.social-btn:has(i.fa-dribbble):hover     { background: #ea4c89; border-color: #ea4c89; box-shadow: 0 5px 16px rgba(234,76,137,0.4); }
.social-btn:has(i.fa-behance):hover      { background: #1769ff; border-color: #1769ff; box-shadow: 0 5px 16px rgba(23,105,255,0.4); }
.social-btn:has(i.fa-stack-overflow):hover { background: #f58025; border-color: #f58025; box-shadow: 0 5px 16px rgba(245,128,37,0.4); }
.social-btn:hover i { color: #ffffff !important; }

.contact-form-card {
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-b);
  font-size: 0.92rem;
  transition: border-color var(--tr);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

/* TOAST BOX */
.toast-box {
  position: fixed;
  bottom: 28px; right: 28px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1px solid var(--royal-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2500;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--tr);
}

.toast-box.active {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM MODERN EXECUTIVE FOOTER
   ═══════════════════════════════════════════════════════════════ */
.main-footer {
  background-color: #061122 !important;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
  padding: 44px 0 24px;
  z-index: 10;
  transition: background 0.35s ease, border-color 0.35s ease;
}

[data-theme="dark"] .main-footer {
  background-color: #061122 !important;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Texture overlay with lowered opacity exclusively in footer */
.main-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hex-pattern.svg');
  background-size: 48px 84px;
  background-repeat: repeat;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

/* Ensure crisp, high-contrast dark typography & elements across themes */
.main-footer .footer-brand-title {
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.main-footer .footer-col-title {
  color: #f1f5f9 !important;
}

.main-footer .footer-contact-val {
  color: #94a3b8 !important;
}

.main-footer .footer-contact-item:hover .footer-contact-val {
  color: #60a5fa !important;
}

.main-footer .footer-contact-item:hover {
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.main-footer .footer-nav-list a {
  color: #94a3b8 !important;
}

.main-footer .footer-nav-list a:hover {
  color: #60a5fa !important;
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.main-footer .footer-social-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.main-footer .footer-social-btn i.fa-x-twitter,
.main-footer .footer-social-btn i.fa-github,
.main-footer .footer-social-btn i.fa-medium,
.main-footer .footer-social-btn i.fa-dev,
.main-footer .footer-social-btn i.fa-tiktok {
  color: #cbd5e1 !important;
}

.main-footer .footer-newsletter-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.main-footer .footer-sub-bar {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.main-footer .footer-copy-text {
  color: #94a3b8 !important;
}

.main-footer .footer-copy-text strong {
  color: #f1f5f9 !important;
}

.main-footer .footer-optiverse-link {
  color: #60a5fa !important;
}

/* Ambient Animated Shimmer Line */
.footer-top-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #2563eb 25%, #7c3aed 50%, #06b6d4 75%, transparent 100%);
  background-size: 200% 100%;
  animation: footerGlowShimmer 8s linear infinite;
}

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

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 100px;
  position: relative;
  z-index: 1;
}

/* 4-column grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.1fr 1.25fr;
  gap: 36px;
  margin-bottom: 28px;
}

/* Brand Column */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 12px;
  position: relative;
  width: 100%;
}

/* Avatar in Footer */
.footer-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 3.5px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  box-shadow: 0 8px 26px rgba(37,99,235,0.35);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin: 0 auto;
}

.footer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: block;
  transition: transform 0.35s ease;
}

.footer-avatar-online {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 0 0 1.5px rgba(16,185,129,0.6);
  animation: udashPulse 2s infinite;
}

.footer-brand-link:hover .footer-avatar-wrap {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}

.footer-brand-title {
  font-family: var(--font-h);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--royal-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.footer-brand-link:hover .footer-brand-title {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: none;
  filter: drop-shadow(0 2px 10px rgba(37,99,235,0.3));
}

/* Availability Pill */
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  margin: 0 auto 10px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  backdrop-filter: blur(4px);
}

.footer-status-pill:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22);
  transform: translateY(-2px) scale(1.02);
}

.footer-pulse-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: udashPulse 2s infinite;
}

/* Shifted Contact Items */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  position: relative;
  overflow: hidden;
}

.footer-contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--royal-blue);
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.22s ease;
  border-radius: 0 2px 2px 0;
}

.footer-contact-item:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}

.footer-contact-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

[data-theme="dark"] .footer-contact-item:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-contact-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.15) rotate(-6deg);
}

.footer-contact-icon.blue   { background: rgba(37,99,235,0.12); color: #2563eb; }
.footer-contact-icon.green  { background: rgba(16,185,129,0.12); color: #10b981; }
.footer-contact-icon.violet { background: rgba(124,58,237,0.12); color: #7c3aed; }

.footer-contact-item:hover .footer-contact-icon.blue   { background: #2563eb; color: #ffffff; box-shadow: 0 3px 10px rgba(37,99,235,0.35); }
.footer-contact-item:hover .footer-contact-icon.green  { background: #10b981; color: #ffffff; box-shadow: 0 3px 10px rgba(16,185,129,0.35); }
.footer-contact-item:hover .footer-contact-icon.violet { background: #7c3aed; color: #ffffff; box-shadow: 0 3px 10px rgba(124,58,237,0.35); }

.footer-contact-val {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.22s ease;
}

.footer-contact-item:hover .footer-contact-val {
  color: var(--royal-blue);
  font-weight: 600;
  transform: translateX(2px);
}

[data-theme="dark"] .footer-contact-item:hover .footer-contact-val {
  color: #60a5fa;
}

/* Social Row */
.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* ── Brand icon colors ── */
.footer-social-btn i.fa-linkedin-in   { color: #0a66c2; }
.footer-social-btn i.fa-github        { color: #6e40c9; }
.footer-social-btn i.fa-x-twitter    { color: #334155; }
.footer-social-btn i.fa-twitter      { color: #1da1f2; }
.footer-social-btn i.fa-facebook-f   { color: #1877f2; }
.footer-social-btn i.fa-instagram    { color: #e4405f; }
.footer-social-btn i.fa-youtube      { color: #ff0000; }
.footer-social-btn i.fa-whatsapp     { color: #25d366; }
.footer-social-btn i.fa-telegram     { color: #229ed9; }
.footer-social-btn i.fa-envelope     { color: #ea4335; }
.footer-social-btn i.fa-link         { color: #6366f1; }
.footer-social-btn i.fa-tiktok       { color: #334155; }
.footer-social-btn i.fa-pinterest    { color: #e60023; }
.footer-social-btn i.fa-discord      { color: #5865f2; }
.footer-social-btn i.fa-reddit       { color: #ff4500; }
.footer-social-btn i.fa-slack        { color: #4a154b; }
.footer-social-btn i.fa-medium       { color: #334155; }
.footer-social-btn i.fa-dribbble     { color: #ea4c89; }
.footer-social-btn i.fa-behance      { color: #1769ff; }
.footer-social-btn i.fa-dev          { color: #334155; }
.footer-social-btn i.fa-stack-overflow { color: #f58025; }

[data-theme="dark"] .footer-social-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .footer-social-btn i.fa-github    { color: #a78bfa; }
[data-theme="dark"] .footer-social-btn i.fa-x-twitter { color: #cbd5e1; }
[data-theme="dark"] .footer-social-btn i.fa-tiktok    { color: #cbd5e1; }
[data-theme="dark"] .footer-social-btn i.fa-medium    { color: #cbd5e1; }
[data-theme="dark"] .footer-social-btn i.fa-dev       { color: #cbd5e1; }
[data-theme="dark"] .social-btn i.fa-github           { color: #a78bfa; }
[data-theme="dark"] .social-btn i.fa-x-twitter        { color: #cbd5e1; }

/* ── Hover: brand-colored bg + white icon + matching glow ── */
.footer-social-btn:hover { transform: translateY(-3px) scale(1.1); }

.footer-social-btn:has(i.fa-linkedin-in):hover   { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 18px rgba(10,102,194,0.45); }
.footer-social-btn:has(i.fa-github):hover        { background: #6e40c9; border-color: #6e40c9; box-shadow: 0 6px 18px rgba(110,64,201,0.45); }
.footer-social-btn:has(i.fa-x-twitter):hover    { background: #0f172a; border-color: #334155; box-shadow: 0 6px 18px rgba(15,23,42,0.45); }
.footer-social-btn:has(i.fa-twitter):hover      { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 6px 18px rgba(29,161,242,0.45); }
.footer-social-btn:has(i.fa-facebook-f):hover   { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 18px rgba(24,119,242,0.45); }
.footer-social-btn:has(i.fa-instagram):hover    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e4405f; box-shadow: 0 6px 18px rgba(228,64,95,0.45); }
.footer-social-btn:has(i.fa-youtube):hover      { background: #ff0000; border-color: #ff0000; box-shadow: 0 6px 18px rgba(255,0,0,0.40); }
.footer-social-btn:has(i.fa-whatsapp):hover     { background: #25d366; border-color: #25d366; box-shadow: 0 6px 18px rgba(37,211,102,0.45); }
.footer-social-btn:has(i.fa-telegram):hover     { background: #229ed9; border-color: #229ed9; box-shadow: 0 6px 18px rgba(34,158,217,0.45); }
.footer-social-btn:has(i.fa-envelope):hover     { background: #ea4335; border-color: #ea4335; box-shadow: 0 6px 18px rgba(234,67,53,0.45); }
.footer-social-btn:has(i.fa-tiktok):hover       { background: #010101; border-color: #010101; box-shadow: 0 6px 18px rgba(1,1,1,0.45); }
.footer-social-btn:has(i.fa-pinterest):hover    { background: #e60023; border-color: #e60023; box-shadow: 0 6px 18px rgba(230,0,35,0.45); }
.footer-social-btn:has(i.fa-discord):hover      { background: #5865f2; border-color: #5865f2; box-shadow: 0 6px 18px rgba(88,101,242,0.45); }
.footer-social-btn:has(i.fa-reddit):hover       { background: #ff4500; border-color: #ff4500; box-shadow: 0 6px 18px rgba(255,69,0,0.45); }
.footer-social-btn:has(i.fa-dribbble):hover     { background: #ea4c89; border-color: #ea4c89; box-shadow: 0 6px 18px rgba(234,76,137,0.45); }
.footer-social-btn:has(i.fa-behance):hover      { background: #1769ff; border-color: #1769ff; box-shadow: 0 6px 18px rgba(23,105,255,0.45); }
.footer-social-btn:has(i.fa-discord):hover      { background: #5865f2; border-color: #5865f2; box-shadow: 0 6px 18px rgba(88,101,242,0.45); }
.footer-social-btn:has(i.fa-link):hover         { background: linear-gradient(135deg,#6366f1,#8b5cf6); border-color: #6366f1; box-shadow: 0 6px 18px rgba(99,102,241,0.45); }

/* White icon on any hovered button */
.footer-social-btn:hover i { color: #ffffff !important; }

/* Column Titles */
.footer-col-title {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
  cursor: default;
  transition: color 0.25s ease;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 20px;
  height: 2.5px;
  background: var(--royal-blue);
  border-radius: 2px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1), background 0.32s;
}

.footer-col:hover .footer-col-title::after {
  width: 38px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Nav Lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-list a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--royal-blue);
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.25s ease;
  border-radius: 0 2px 2px 0;
}

.footer-nav-list a:hover {
  color: var(--royal-blue);
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
  transform: translateX(6px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.footer-nav-list a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

[data-theme="dark"] .footer-nav-list a:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Newsletter Column */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-input-group {
  position: relative;
  width: 100%;
}

.footer-newsletter-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
  transition: all 0.25s ease;
}

.footer-newsletter-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  border: 1.5px solid var(--border-card);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.footer-newsletter-input:hover {
  border-color: rgba(37,99,235,0.4);
}

.footer-newsletter-input:focus {
  border-color: #2563eb;
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
}

.footer-newsletter-input:focus + .footer-newsletter-icon,
.footer-newsletter-input-group:focus-within .footer-newsletter-icon {
  color: #2563eb;
  transform: translateY(-50%) scale(1.1);
}

[data-theme="dark"] .footer-newsletter-input {
  background: rgba(255,255,255,0.03);
  border-color: #1e2c4d;
  color: #e2e8f0;
}

[data-theme="dark"] .footer-newsletter-input:focus {
  background: #111c35;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

/* Subscribe Button with Light Sweep Sheen Animation */
.footer-newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-newsletter-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.footer-newsletter-btn:hover::after {
  left: 140%;
  transition: all 0.65s ease;
}

.footer-newsletter-btn i {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}

.footer-newsletter-btn:hover i {
  transform: translate(4px, -2px) rotate(15deg) scale(1.15);
}

.footer-newsletter-btn:active {
  transform: translateY(0);
}

/* Sub-Footer Bar */
.footer-sub-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .footer-sub-bar {
  border-top-color: rgba(255,255,255,0.06);
}

.footer-copy-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  transition: all 0.25s ease;
}

.footer-copy-text strong {
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.25s ease;
}

.footer-copy-text:hover strong {
  color: #2563eb;
}

.footer-optiverse-link {
  color: var(--royal-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  display: inline-block;
}

.footer-optiverse-link:hover {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .footer-optiverse-link {
  color: #60a5fa;
}

[data-theme="dark"] .footer-optiverse-link:hover {
  color: #a78bfa;
}

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

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--royal-blue);
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.06);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-back-top:hover {
  color: var(--royal-blue);
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-container {
    padding: 0 48px;
  }
}

@media (max-width: 640px) {
  .main-footer {
    padding: 48px 0 24px;
  }
  .footer-container {
    padding: 0 20px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .footer-sub-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET & MOBILE)
   ================================================================ */

/* Laptop / Medium Desktops (<=1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large {
    grid-column: span 1;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Tablet (<=992px) — Keep 2-column: text left, image right */
@media (max-width: 992px) {
  .section-container {
    padding: 60px 36px;
  }
  .hero-section {
    min-height: auto;
    padding-top: 115px;
    padding-bottom: 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.95fr;
    gap: 24px;
    text-align: left;
  }
  .hero-content {
    order: 1;
  }
  .hero-desc {
    text-align: justify !important;
    text-justify: inter-word !important;
  }
  .hero-image-wrapper {
    order: 2;
    max-width: 440px;
    min-height: 480px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-img-card {
    position: relative;
    z-index: 10 !important;
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  .hero-img-card img {
    height: 560px !important;
    width: auto !important;
    max-width: 130% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    transform: translateY(-55px) scale(1.15) !important;
    transform-origin: bottom center !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 85%, transparent 100%) !important;
  }
  .floating-badge {
    position: absolute !important;
    z-index: 20 !important;
    width: calc(50% - 5px) !important;
    max-width: none !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    animation: float 4s ease-in-out infinite alternate !important;
  }
  .floating-badge .badge-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.85rem !important;
  }
  .floating-badge .badge-text h4 {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }
  .floating-badge .badge-text p {
    font-size: 0.62rem !important;
    line-height: 1.3 !important;
  }
  .badge-1 {
    bottom: 10px !important;
    left: 2px !important;
    top: auto !important;
    right: auto !important;
  }
  .badge-2 {
    bottom: 10px !important;
    right: 2px !important;
    top: auto !important;
    left: auto !important;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-main-img {
    height: 380px;
  }
  .about-secondary-img {
    width: 150px;
    height: 170px;
    bottom: -16px;
    right: -10px;
  }

  /* TIMELINE SINGLE COLUMN ON MOBILE/TABLET */
  .timeline::before {
    left: 20px;
    transform: none;
  }
  .timeline-item {
    width: 100% !important;
    padding-left: 54px !important;
    padding-right: 0 !important;
    left: 0 !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
}

/* Mobile Devices (<=768px) */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
  }
  .stat-item h3 {
    font-size: 1.5rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 20px 16px;
  }
}

/* Small Screens (<=480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .projects-grid, .skills-grid, .education-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   MULTI-PAGE COMPONENTS
   ================================================================ */

/* ── Page Hero Banner — with lowered opacity texture ── */
.page-hero {
  background-color: #061122 !important;
  background-image: linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hex-pattern.svg');
  background-size: 48px 84px;
  background-repeat: repeat;
  opacity: 0.50;
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .page-hero {
  background-color: #061122 !important;
  background-image: linear-gradient(160deg, #050d1a 0%, #07152b 50%, #030813 100%) !important;
}

.page-hero .section-title {
  color: #ffffff !important;
}

.page-hero .section-subtitle {
  color: rgba(203, 213, 225, 0.88) !important;
}

/* Technical Excellence / Inner Page Hero Highlight — Matches Expertise & CTA Orange Gradient */
.page-hero .grad-text,
#about .section-title .grad-text {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ea580c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Breadcrumb Navigation ── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--royal-blue);
  font-weight: 600;
  transition: opacity var(--tr);
}

.page-breadcrumb a:hover { opacity: 0.75; }

.page-breadcrumb i {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.page-breadcrumb span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Specialization Card Grid (Home Page) ── */
.specialization-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--tr);
}

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

.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.spec-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.spec-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.spec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--royal-blue);
  margin-top: 4px;
}

.spec-link i {
  font-size: 0.75rem;
  transition: transform var(--tr);
}

.spec-card:hover .spec-link i {
  transform: translateX(4px);
}

/* ── About Page Stats Row ── */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.about-stat-card {
  padding: 28px 20px;
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



/* ── Empty State ── */
.empty-state {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--border-card);
}

.empty-state p {
  font-size: 0.95rem;
}

/* ── Form Success Banner ── */
.form-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--r-sm);
  color: var(--emerald);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ── Responsive: Specialization Grid ── */
@media (max-width: 992px) {
  .specialization-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specialization-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .about-stat-num {
    font-size: 2rem;
  }
}

/* WhatsApp Quick Chat icon — brand green */
#whatsapp-cta .fa-whatsapp {
  color: #25D366;
  font-size: 1.15em;
}

/* Auth card link color */
.auth-link {
  color: var(--royal-blue);
  transition: all var(--tr);
}
.auth-link:hover {
  opacity: 0.85;
}
[data-theme="dark"] .auth-link {
  color: #ffffff !important;
}

/* Light Mode Card & Form Background Enhancements */
[data-theme="light"] .glass-card,
[data-theme="light"] .contact-form-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Remove breadcrumbs and section tags globally from all pages */
.page-breadcrumb,
.section-tag {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   ACHIEVEMENTS & CERTIFICATIONS SECTION & CARD STYLING
   ───────────────────────────────────────────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

.achievement-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.btn-cert-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: var(--royal-blue);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  margin-top: 16px;
  width: auto;
  text-decoration: none;
}

.btn-cert-view:hover {
  transform: translateY(-2px);
  background: var(--indigo);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  color: #ffffff !important;
}

.btn-cert-view i {
  font-size: 0.92rem;
  color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────
   ENGAGING CTA BANNER CARD
   ───────────────────────────────────────────────────────────── */
.cta-banner-card {
  position: relative;
  background-color: #06101f !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, #0c1a35 0%, #070f20 45%, #040c1a 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.22) !important;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 50px -15px rgba(251, 191, 36, 0.1) !important;
  border-radius: 24px !important;
  overflow: hidden;
  transition: all 0.35s ease;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hex-pattern.svg');
  background-size: 48px 84px;
  background-repeat: repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.cta-banner-card > * {
  position: relative;
  z-index: 1;
}

.cta-banner-card h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.cta-banner-card .grad-text {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.cta-banner-card p {
  color: #e2e8f0 !important;
  font-weight: 400 !important;
  text-shadow: none;
}

/* Primary Button — bold orange-amber */
.cta-banner-card .btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 6px 22px -4px rgba(234, 88, 12, 0.5) !important;
}

.cta-banner-card .btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #dc2626 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -4px rgba(234, 88, 12, 0.65) !important;
}

/* Secondary Button (Frosted Dark Glass with Amber Accent) */
.cta-banner-card .btn-secondary {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.cta-banner-card .btn-secondary:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25) !important;
}

/* Bottom Feature Chips */
.cta-banner-card .cta-exp-chips {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.cta-banner-card .cta-exp-chips span {
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.cta-banner-card .cta-exp-chips span:hover {
  color: #e2e8f0 !important;
}

.cta-banner-card .cta-exp-chips i {
  color: #f59e0b !important;
}

[data-theme="dark"] .cta-banner-card {
  background-color: #05101e !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
}

.cta-banner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.38) !important;
  box-shadow:
    0 36px 70px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px -12px rgba(251, 191, 36, 0.15) !important;
}

/* Tagline: elegant semi-transparent white, flowing from headline */
.cta-banner-card .cta-banner-tagline {
  font-family: var(--font-h);
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(253, 230, 138, 0.75) !important;
  margin: 0 auto 22px !important;
  max-width: 720px;
  text-shadow: none !important;
  opacity: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

/* Impact callout: white italic — calm authority before buttons */
.cta-banner-card .cta-banner-impact {
  font-style: italic;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 auto 28px !important;
  max-width: 600px;
  letter-spacing: 0.01em;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* Footer note: subtle closing line above chip section */
.cta-banner-card .cta-banner-footer-note {
  font-size: 0.87rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin: 0 auto 20px !important;
  max-width: 560px;
  text-shadow: none !important;
  opacity: 1 !important;
}

.cta-banner-card .cta-banner-footer-note i {
  color: #fbbf24 !important;
}


/* =================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE OVERRIDES
   ================================================================= */

/* ─── HAMBURGER BUTTON — Modern 3-bar lines ────────────────────── */
.mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.22s ease;
  z-index: 1001;
}

.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

[data-theme="dark"] .mobile-menu-btn {
  background: #141d33 !important;
  border-color: #253352 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .mobile-menu-btn .hamburger-bar {
  background-color: #ffffff !important;
}

/* Animated Hamburger to X */
.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile-only Login item — hidden on desktop, shown inside mobile drawer */
.mobile-nav-login-item,
.nav-wrapper .nav-list li.mobile-nav-login-item {
  display: none !important;
}

/* ─── TABLETS & PHONES (≤ 1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  /* Show Hamburger Menu */
  .mobile-menu-btn {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  /* Hide Desktop Connect Button on tablets & mobile */
  .btn-nav-contact {
    display: none !important;
  }

  /* Reduce oversized desktop padding so hamburger fits */
  .header-container {
    padding: 8px 16px !important;
    overflow: visible !important;
  }

  .header-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
  }

  .logo-text-group {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .logo-name {
    font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .logo-sub {
    display: none !important;
  }

  .header-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 1002 !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    overflow: visible !important;
  }

  /* Full Width Mobile Dropdown Drawer */
  .nav-wrapper {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
    background: #ffffff !important;
    border-top: 3px solid var(--royal-blue) !important;
    border-bottom: 1px solid var(--border-card) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25) !important;
    z-index: 9999 !important;
    padding: 16px 18px 22px 18px !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
  }

  [data-theme="dark"] .nav-wrapper {
    background: #0f172a !important;
    border-top-color: #38bdf8 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
  }

  .nav-wrapper.open {
    display: block !important;
  }

  .nav-wrapper .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    list-style: none !important;
    width: 100% !important;
  }

  .nav-wrapper .nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-radius: var(--r-md) !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .nav-wrapper .nav-item {
    background: #141d33 !important;
    border-color: #253352 !important;
    color: #f8fafc !important;
  }

  .nav-wrapper .nav-item i {
    font-size: 1rem !important;
    color: var(--royal-blue) !important;
    width: 20px;
    text-align: center;
  }

  [data-theme="dark"] .nav-wrapper .nav-item i {
    color: #38bdf8 !important;
  }

  .nav-wrapper .nav-item:hover {
    background: #f1f5f9 !important;
    border-color: var(--royal-blue) !important;
    border-left-color: var(--royal-blue) !important;
    color: var(--royal-blue) !important;
    transform: translateX(3px) !important;
  }

  [data-theme="dark"] .nav-wrapper .nav-item:hover {
    background: #1c2744 !important;
    border-color: #38bdf8 !important;
    border-left-color: #38bdf8 !important;
    color: #38bdf8 !important;
  }

  .nav-wrapper .nav-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    border-left-color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  }

  .nav-wrapper .nav-item.active i {
    color: #ffffff !important;
  }

  /* ── Mobile Login / Dashboard Item ── */
  .mobile-nav-login-item,
  .nav-wrapper .nav-list li.mobile-nav-login-item {
    display: block !important;
    margin-top: 6px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  [data-theme="dark"] .mobile-nav-login-item {
    border-top-color: #253352 !important;
  }

  .mobile-nav-login-link {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    border-left-color: rgba(255,255,255,0.5) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
    font-weight: 700 !important;
  }

  .mobile-nav-login-link i {
    color: #ffffff !important;
  }

  .mobile-nav-login-link:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border-left-color: rgba(255,255,255,0.8) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5) !important;
  }


  .hero-section {
    padding: 100px 24px 40px 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  }
  .hero-desc {
    text-align: justify !important;
    text-justify: inter-word !important;
  }
  .hero-image-wrapper {
    max-width: 420px;
    min-height: 480px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-img-card {
    position: relative;
    z-index: 10 !important;
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  .hero-img-card img {
    height: 570px !important;
    width: auto !important;
    max-width: 130% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(-55px) scale(1.15) !important;
    transform-origin: bottom center !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 85%, transparent 100%) !important;
  }
  .floating-badge {
    position: absolute !important;
    z-index: 20 !important;
    max-width: 205px !important;
    padding: 10px 14px !important;
  }
  .badge-1 {
    bottom: 12px !important;
    left: -10px !important;
    top: auto !important;
    right: auto !important;
  }
  .badge-2 {
    bottom: 12px !important;
    right: -10px !important;
    top: auto !important;
    left: auto !important;
  }
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
  .skills-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .projects-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* About on tablets & mobile */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
  }
  .about-image-stack {
    max-width: 300px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    order: 1 !important;
  }
  .about-main-img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 340px !important;
    object-fit: cover !important;
    border-radius: var(--r-lg) !important;
  }
  .about-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    order: 2 !important;
  }
  .about-content h3 {
    text-align: center !important;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem) !important;
  }
  .about-text {
    text-align: center !important;
    max-width: 650px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .about-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .feature-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ─── TABLETS PORTRAIT & MOBILE (≤ 768px) ────────────────────── */
@media (max-width: 768px) {
  /* Header adjustments */
  .top-header {
    padding: 0;
  }
  .header-container {
    padding: 8px 16px !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }
  .header-logo {
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .logo-box {
    width: 32px !important;
    height: 32px !important;
  }
  .logo-name {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .logo-sub {
    display: none !important;
  }
  .header-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 1002 !important;
    overflow: visible !important;
  }
  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }
  .btn-nav-contact {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn .hamburger-bar {
    width: 16px !important;
    height: 2px !important;
  }

  /* Page Hero padding reduction on mobile */
  .page-hero .section-container {
    padding-top: 85px !important;
    padding-bottom: 20px !important;
  }

  /* Main section containers on mobile */
  .section-container {
    padding: 30px 12px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .section-title {
    font-size: clamp(1.35rem, 5.2vw, 1.95rem);
  }
  .section-subtitle {
    font-size: 0.88rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 90px !important;
    padding-bottom: 24px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    min-height: auto !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
  }
  .status-badge {
    margin-bottom: 12px !important;
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  .hero-title {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem) !important;
    line-height: 1.22 !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 16px !important;
    word-break: break-word !important;
  }
  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
  }
  .btn-primary, .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }
  .hero-desc {
    text-align: justify !important;
    text-justify: inter-word !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-image-wrapper {
    display: none !important;
  }
  .hero-big-circle {
    width: 270px !important;
    height: 270px !important;
  }
  .hero-circle-ring {
    width: 310px !important;
    height: 310px !important;
  }
  .hero-img-card {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  .hero-img-card img {
    height: 340px !important;
    max-height: 340px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .floating-badge {
    position: absolute !important;
    padding: 6px 10px !important;
    max-width: 155px !important;
    z-index: 20 !important;
  }
  .badge-1 {
    bottom: 8px !important;
    left: -6px !important;
    top: auto !important;
    right: auto !important;
  }
  .badge-2 {
    bottom: 8px !important;
    right: -6px !important;
    top: auto !important;
    left: auto !important;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 24px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--border-subtle) !important;
    box-sizing: border-box !important;
  }
  .stat-item {
    padding: 14px 6px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--r-md) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .stat-item h3 {
    font-size: clamp(1.25rem, 4.2vw, 1.55rem) !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
  }
  .stat-item p {
    font-size: clamp(0.62rem, 2.2vw, 0.72rem) !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }

  /* About Section on Home Page */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .about-image-stack {
    max-width: 280px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    order: 1 !important;
  }
  .about-main-img {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: cover !important;
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: var(--shadow-md) !important;
  }
  .about-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    order: 2 !important;
  }
  .about-content h3 {
    font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
    font-weight: 800 !important;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    color: var(--text-primary) !important;
  }
  .about-text {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 22px !important;
    text-align: center !important;
    max-width: 600px !important;
    color: var(--text-secondary) !important;
  }
  .about-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }
  .feature-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .feature-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 1.05rem !important;
    border-radius: var(--r-sm) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .feature-info {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  .feature-info h4 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    color: var(--text-primary) !important;
  }
  .feature-info p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    margin: 0 !important;
    color: var(--text-muted) !important;
  }
  .about-contact-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.84rem !important;
    margin-top: 6px !important;
  }

  /* Horizontal Filter Tabs */
  .skills-domain-tabs,
  .project-filters {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 6px 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }
  .skills-domain-tabs::-webkit-scrollbar,
  .project-filters::-webkit-scrollbar {
    display: none !important;
  }
  .tab-btn,
  .filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
  }
  .tab-btn,
  .filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Single Column Grids for Mobile */
  .skills-grid        { grid-template-columns: 1fr !important; gap: 10px !important; width: 100% !important; }
  .projects-grid      { grid-template-columns: 1fr !important; gap: 14px !important; width: 100% !important; }
  .gallery-grid       { grid-template-columns: 1fr !important; gap: 14px !important; width: 100% !important; }
  .achievements-grid  { grid-template-columns: 1fr !important; gap: 14px !important; width: 100% !important; }
  .specialization-grid{ grid-template-columns: 1fr !important; gap: 12px !important; width: 100% !important; }
  .about-stats-row    { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; width: 100% !important; }
  .education-grid     { grid-template-columns: 1fr !important; width: 100% !important; }
  .ab-grid            { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 22px !important; width: 100% !important; }
  .ab-image-col       { max-width: 280px !important; margin: 0 auto !important; width: 100% !important; display: flex !important; justify-content: center !important; order: 1 !important; }
  .ab-img-card, .ab-img { width: 100% !important; max-width: 280px !important; height: auto !important; max-height: 320px !important; object-fit: cover !important; border-radius: var(--r-lg) !important; }
  .ab-content-col     { width: 100% !important; text-align: center !important; order: 2 !important; }
  .ab-header          { text-align: center !important; margin-bottom: 16px !important; }
  .ab-title           { font-size: clamp(1.3rem, 5vw, 1.7rem) !important; font-weight: 800 !important; text-align: center !important; margin-bottom: 10px !important; }
  .ab-bio             { font-size: 0.9rem !important; line-height: 1.65 !important; text-align: center !important; }
  .ab-features-grid   { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; width: 100% !important; }
  .ab-card            { display: flex !important; align-items: center !important; text-align: left !important; gap: 14px !important; padding: 14px 16px !important; width: 100% !important; box-sizing: border-box !important; }

  /* Contact Section */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-form-card {
    order: 1 !important;
    padding: 16px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-info-col {
    order: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-card {
    padding: 12px 14px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
  }
  .contact-details {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .contact-details p {
    font-size: 0.78rem !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  /* Timeline on Mobile */
  .timeline::before { left: 14px !important; }
  .timeline-dot { left: 8px !important; }
  .timeline-card { margin-left: 32px !important; padding: 14px !important; }

  /* CTA Banner */
  .cta-banner-card {
    padding: 20px 12px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cta-banner-card h3 { font-size: clamp(1.2rem, 4.8vw, 1.7rem) !important; }
  .cta-banner-card p  { font-size: 0.85rem !important; }

  /* Footer on Mobile */
  .footer-container {
    padding: 0 12px !important;
  }
  .footer-main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 20px !important;
  }
  .footer-sub-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }
}

/* ─── SMALL MOBILE PHONES (≤ 520px) ────────────────────────── */
@media (max-width: 520px) {
  .header-container {
    padding: 8px 16px !important;
  }
  .logo-name {
    font-size: clamp(1.02rem, 4.4vw, 1.15rem) !important;
    font-weight: 800 !important;
  }
  .header-cta-group {
    gap: 6px !important;
  }
  .theme-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.78rem !important;
  }
  .mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .glass-card {
    border-radius: var(--r-md) !important;
  }
}

/* ─── ULTRA-SMALL PHONES (≤ 380px) ─────────────────────────── */
@media (max-width: 380px) {
  .header-container {
    padding: 6px 14px !important;
  }
  .header-logo {
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .logo-name {
    font-size: clamp(0.96rem, 4.2vw, 1.08rem) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .header-cta-group {
    gap: 4px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }
  .theme-toggle-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn .hamburger-bar {
    width: 14px !important;
    height: 2px !important;
  }
  .section-container {
    padding: 24px 8px !important;
  }
  .page-hero .section-container {
    padding-top: 75px !important;
    padding-bottom: 16px !important;
  }
  .hero-title {
    font-size: 1.6rem !important;
  }
  .tab-btn, .filter-btn {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
  }
  .about-stats-row {
    grid-template-columns: 1fr !important;
  }
}

/* ─── TINY SMARTPHONES (≤ 280px) ───────────────────────────── */
@media (max-width: 280px) {
  .header-container {
    padding: 3px 4px !important;
  }
  .header-logo {
    gap: 3px !important;
  }
  .logo-name {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
  }
  .header-cta-group {
    gap: 3px !important;
    flex-shrink: 0 !important;
  }
  .theme-toggle-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn .hamburger-bar {
    width: 13px !important;
    height: 1.5px !important;
  }
  .section-container {
    padding: 18px 4px !important;
  }
  .hero-section {
    padding-top: 70px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .status-badge {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
  }
  .hero-title {
    font-size: 1.4rem !important;
  }
  .btn-primary, .btn-secondary {
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
  }
  .hsc-tri-grid, .ab-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .hsc-center-col, .ab-image-col {
    max-width: 200px !important;
    margin: 0 auto !important;
    order: 1 !important;
  }
  .hsc-img-frame, .hsc-img, .ab-img-card, .ab-img {
    max-width: 200px !important;
    height: 190px !important;
    max-height: 190px !important;
  }
  .hsc-header, .ab-header {
    margin-bottom: 12px !important;
    text-align: center !important;
  }
  .hsc-title, .ab-title {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
  }
  .hsc-bio, .ab-bio {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }
  .hsc-feat-col, .ab-features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    order: 2 !important;
  }
  .hsc-card, .ab-card {
    padding: 8px 10px !important;
    min-height: auto !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hsc-card-icon, .ab-card-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.8rem !important;
  }
  .hsc-card-body h4, .ab-card-body h4 {
    font-size: 0.8rem !important;
    margin-bottom: 2px !important;
  }
  .hsc-card-body p, .ab-card-body p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }
}

/* ─── MICRO VIEWPORTS (≤ 220px / 200px) ────────────────────── */
@media (max-width: 220px) {
  .header-container {
    padding: 2px 3px !important;
  }
  .header-logo {
    gap: 2px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .logo-name {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
  }
  .header-cta-group {
    gap: 2px !important;
    flex-shrink: 0 !important;
  }
  .theme-toggle-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 0.6rem !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-btn .hamburger-bar {
    width: 11px !important;
    height: 1.5px !important;
  }
  .hero-section {
    padding-top: 60px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .section-container {
    padding: 14px 2px !important;
  }
  .hsc-tri-grid, .ab-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .hsc-center-col, .ab-image-col {
    max-width: 160px !important;
    margin: 0 auto !important;
    order: 1 !important;
  }
  .hsc-img-frame, .hsc-img, .ab-img-card, .ab-img {
    max-width: 160px !important;
    height: 150px !important;
    max-height: 150px !important;
    padding: 4px !important;
  }
  .hsc-header, .ab-header {
    margin-bottom: 8px !important;
    text-align: center !important;
  }
  .hsc-title, .ab-title {
    font-size: 0.98rem !important;
    margin-bottom: 6px !important;
  }
  .hsc-bio, .ab-bio {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }
  .hsc-feat-col, .ab-features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    order: 2 !important;
  }
  .hsc-card, .ab-card {
    padding: 6px 8px !important;
    min-height: auto !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hsc-card-icon, .ab-card-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 0.7rem !important;
  }
  .hsc-card-body h4, .ab-card-body h4 {
    font-size: 0.74rem !important;
    margin-bottom: 1px !important;
  }
  .hsc-card-body p, .ab-card-body p {
    font-size: 0.64rem !important;
    line-height: 1.25 !important;
  }
}

/* ================================================================
   SECTION ANIMATED BACKGROUNDS (Sleek Executive System)
   ================================================================ */

/* ── Shared Wrapper ── */
.section-bg-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  width: 100%;
  transition: background var(--tr);
}
.section-bg-wrap .section-container {
  position: relative;
  z-index: 2;
}

/* ── Glass cards inside bg sections ── */
.bg-expertise .glass-card,
.bg-skills .glass-card,
.bg-about .glass-card,
.bg-spotlight .glass-card,
.bg-blogs .glass-card,
.bg-expertise .hsc-card,
.bg-skills .hsc-card,
.bg-about .hsc-card,
.bg-expertise .ab-card,
.bg-about .ab-card,
.bg-expertise .about-stat-card,
.bg-about .about-stat-card,
.bg-blogs .blog-card,
.bg-expertise .contact-card,
.bg-expertise .contact-form-card,
.bg-skills .contact-card,
.bg-skills .contact-form-card {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="dark"] .bg-expertise .glass-card,
[data-theme="dark"] .bg-skills .glass-card,
[data-theme="dark"] .bg-about .glass-card,
[data-theme="dark"] .bg-spotlight .glass-card,
[data-theme="dark"] .bg-blogs .glass-card,
[data-theme="dark"] .bg-expertise .hsc-card,
[data-theme="dark"] .bg-skills .hsc-card,
[data-theme="dark"] .bg-about .hsc-card,
[data-theme="dark"] .bg-expertise .ab-card,
[data-theme="dark"] .bg-about .ab-card,
[data-theme="dark"] .bg-expertise .about-stat-card,
[data-theme="dark"] .bg-about .about-stat-card,
[data-theme="dark"] .bg-blogs .blog-card,
[data-theme="dark"] .bg-expertise .contact-card,
[data-theme="dark"] .bg-expertise .contact-form-card,
[data-theme="dark"] .bg-skills .contact-card,
[data-theme="dark"] .bg-skills .contact-form-card {
  background: rgba(16, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* ==============================================================
   WHITE-START TOP TO DARKER-BASE BOTTOM GRADIENT SYSTEM
   ============================================================== */
.bg-expertise,
.bg-about,
.bg-spotlight,
.bg-blogs {
  background:
    radial-gradient(ellipse 65% 40% at 15% 8%, rgba(37, 99, 235, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 20% 90%, rgba(37, 99, 235, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(124, 58, 237, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 18%, #e2e8f0 70%, #d0dbe9 100%);
  border-top: 1px solid rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid rgba(191, 207, 226, 0.9);
}

/* Specialized Expertise – dark navy blue background */
.bg-skills {
  background:
    radial-gradient(ellipse 65% 40% at 15% 8%, rgba(56, 139, 253, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(124, 58, 237, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 20% 90%, rgba(37, 99, 235, 0.30) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(124, 58, 237, 0.24) 0%, transparent 65%),
    linear-gradient(180deg, #0d1b3e 0%, #0a1530 25%, #071228 70%, #050e22 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.35);
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}
[data-theme="dark"] .bg-expertise,
[data-theme="dark"] .bg-about,
[data-theme="dark"] .bg-spotlight,
[data-theme="dark"] .bg-blogs {
  background:
    radial-gradient(ellipse 65% 40% at 15% 8%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 20% 90%, rgba(37, 99, 235, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(124, 58, 237, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, #10192e 0%, #0a1224 25%, #050b18 70%, #020612 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bg-skills {
  background:
    radial-gradient(ellipse 65% 40% at 15% 8%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 20% 90%, rgba(37, 99, 235, 0.32) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(124, 58, 237, 0.26) 0%, transparent 65%),
    linear-gradient(180deg, #08101d 0%, #060d18 25%, #030812 70%, #020510 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Shared Aurora Container ── */
.sec-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sec-orb {
  position: absolute;
  border-radius: 50%;
  animation: secOrbFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes secOrbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(0.98); }
}

/* ── Shared Subtle Grid Overlay ── */
.sec-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}

/* bg-expertise gets the lighter style */
.bg-expertise {
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.11) 0%, transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.09) 0%, transparent 55%),
    linear-gradient(180deg, #f1f5f9 0%, #e6eef8 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
/* bg-skills (Specialized Expertise) — dark navy blue with tech hex texture */
.bg-skills {
  background-color: #08142c;
  background-image:
    url('../images/tech-hex-dark.svg'),
    radial-gradient(circle at 10% 20%, rgba(56, 139, 253, 0.24) 0%, transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, #0d1b3e 0%, #060e22 100%);
  background-size: 48px 84px, auto, auto, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  border-top: 1px solid rgba(56, 139, 253, 0.35);
  border-bottom: 1px solid rgba(56, 139, 253, 0.25);
}
[data-theme="dark"] .bg-expertise {
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, #050b18 0%, #081023 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bg-skills {
  background-color: #040914;
  background-image:
    url('../images/tech-hex-dark.svg'),
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.32) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.26) 0%, transparent 60%),
    linear-gradient(180deg, #060e1e 0%, #0a1530 100%);
  background-size: 48px 84px, auto, auto, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ensure crystal-clear readability for headers in dark navy .bg-skills */
.bg-skills .section-title {
  color: #ffffff !important;
}
.bg-skills .section-subtitle {
  color: #cbd5e1 !important;
}
.bg-skills .section-tag {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

/* ── Orange Accents inside .bg-skills (Specialized Expertise & Skills) ── */
.bg-skills .grad-text {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ea580c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Specialized Expertise Cards: Icon, Period, Subtitle Icon, Bullets (Emerald Green) */
.bg-skills .edu-icon {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #059669 !important;
}

.bg-skills .edu-period {
  color: #059669 !important;
}

.bg-skills .edu-institution i {
  color: #059669 !important;
}

.bg-skills .timeline-desc-list li::before {
  color: #059669 !important;
}

[data-theme="dark"] .bg-skills .edu-icon {
  background: rgba(52, 211, 153, 0.15) !important;
  color: #34d399 !important;
}
[data-theme="dark"] .bg-skills .edu-period,
[data-theme="dark"] .bg-skills .edu-institution i,
[data-theme="dark"] .bg-skills .timeline-desc-list li::before {
  color: #34d399 !important;
}

/* Skill Cards: Domain Tag, Icon, Action Link & Hover (Brand Royal Blue) */
.bg-skills .skill-domain-tag {
  color: #2563eb !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.bg-skills .skill-icon {
  color: #2563eb !important;
}

.bg-skills .skill-card-action {
  color: #2563eb !important;
}

.bg-skills .skill-card:hover {
  border-color: rgba(37, 99, 235, 0.5) !important;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.18), 0 4px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

.bg-skills .skill-card:hover .skill-card-action {
  color: #1d4ed8 !important;
}

[data-theme="dark"] .bg-skills .skill-domain-tag,
[data-theme="dark"] .bg-skills .skill-icon,
[data-theme="dark"] .bg-skills .skill-card-action {
  color: #2563eb !important;
}

.sec-orb-x {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: -80px; right: -50px;
  filter: blur(70px);
}
.sec-orb-y {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.10) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  filter: blur(75px);
  animation-delay: -4s;
}
.sec-orb-z {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
  top: 40%; left: 30%;
  filter: blur(65px);
  animation-delay: -9s;
}

[data-theme="dark"] .sec-orb-x { background: radial-gradient(circle, rgba(37, 99, 235, 0.20) 0%, transparent 70%); }
[data-theme="dark"] .sec-orb-y { background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%); }
[data-theme="dark"] .sec-orb-z { background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, transparent 70%); }

.sec-grid-skills {
  display: none;
}

