/* ==========================================================================
   Main Custom Design System - Vibhat Srivastava Portfolio
   Typography: Outfit (Headings) + Inter (Body) + JetBrains Mono (Code)
   Theme: DevOps Obsidian (Dark) & Clean Technical Slate (Light)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design Tokens & Ambient Depth (Light & Dark Themes)
   -------------------------------------------------------------------------- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Light Theme */
  --bg-primary: #f8fafc;
  --bg-ambient: radial-gradient(circle at 50% 0%, rgba(186, 230, 253, 0.5) 0%, rgba(248, 250, 252, 0) 65%), #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  --accent-primary: #0284c7;
  --accent-secondary: #059669;
  --accent-tertiary: #10b981;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  --accent-glow: rgba(2, 132, 199, 0.15);

  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgba(2, 132, 199, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(226, 232, 240, 0.8);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* DevOps Obsidian Theme */
  --bg-primary: #0a0e17;
  --bg-ambient: radial-gradient(ellipse at 50% -15%, rgba(56, 189, 248, 0.16) 0%, rgba(10, 14, 23, 0) 70%), #0a0e17;
  --bg-surface: #111827;
  --bg-subtle: #1a2234;
  --bg-card: #121826;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);

  --accent-primary: #38bdf8;
  --accent-secondary: #34d399;
  --accent-tertiary: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  --accent-glow: rgba(56, 189, 248, 0.2);

  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 35px -5px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(56, 189, 248, 0.35);

  --nav-bg: rgba(17, 24, 39, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   2. Base & Typography Hierarchy
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body,
body p,
body li,
body div,
body span,
body a,
body input,
body textarea,
body button {
  font-family: var(--font-body) !important;
}

body {
  background: var(--bg-ambient) !important;
  background-color: var(--bg-primary) !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
  line-height: 1.75;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale with Modern Proportions */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.intro-header h1,
.intro-header h2,
.intro-header .page-heading h1,
.intro-header .post-heading h1,
.page-heading h1,
.post-heading h1,
.navbar-brand,
.navbar-nav .nav-link,
.btn-pro {
  font-family: var(--font-heading) !important;
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h1,
.h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2,
.h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h3,
.h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

h4,
.h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
li {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Optimal Reading Measure (Max line length) */
p,
.lead,
.timeline-content p,
.intro-header .page-subheading,
.intro-header .post-subheading {
  max-width: 72ch;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

code,
pre {
  font-family: var(--font-code);
  font-size: 0.9em;
}

pre {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

/* High contrast accessibility focus states */
:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   2.5. Broadened Canvas Layout & Container System (Widescreen UI/UX)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .container-md {
    max-width: 1280px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Unconstrain default Beautiful Jekyll 8-column tunnel for an expansive modern canvas */
  div[role="main"] > .row > .col-xl-8.offset-xl-2,
  .intro-header .col-xl-8.offset-xl-2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-md {
    max-width: 992px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  div[role="main"] > .row > .col-lg-10.offset-lg-1,
  .intro-header .col-lg-10.offset-lg-1 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

/* Typographic Line-Length Guard for optimal reading ergonomics */
div[role="main"] p.lead,
.pro-lead {
  max-width: 920px;
}

/* Founder / Architect Attribution Badge Component */
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
  margin-bottom: 2rem;
}

.founder-badge:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.18);
}

.founder-badge-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

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

.founder-badge-text a {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
}

.founder-badge-text a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. Navbar & Header Layout Alignment
   -------------------------------------------------------------------------- */
.navbar-custom {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), padding var(--transition-normal);
  padding: 0.75rem 1.5rem;
}

.navbar-custom .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

.navbar-custom .navbar-brand-logo {
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.navbar-custom .navbar-brand-logo img {
  height: 64px !important;
  max-height: 64px !important;
  width: auto !important;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 4px 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  vertical-align: middle;
}

.navbar-custom .navbar-brand-logo:hover img {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

[data-theme="dark"] .navbar-custom .navbar-brand-logo img {
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1200px) {
  .navbar-custom .navbar-brand-logo img {
    height: 68px !important;
    max-height: 68px !important;
  }
}

@media (max-width: 768px) {
  .navbar-custom .navbar-brand-logo img {
    height: 48px !important;
    max-height: 48px !important;
    padding: 3px 6px;
  }
}

.navbar-custom .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  position: relative;
  transition: all var(--transition-fast);
  min-height: 44px;
  /* Touch target accessibility */
  display: inline-flex;
  align-items: center;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
  color: var(--accent-primary) !important;
  background: var(--accent-glow);
}

.navbar-custom .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Dark Mode Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.75rem;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

/* --------------------------------------------------------------------------
   Unified Left-Aligned Page Header
   -------------------------------------------------------------------------- */
.intro-header,
.intro-header.no-img,
.intro-header .container-md,
.intro-header .page-heading,
.intro-header .post-heading,
.intro-header h1,
.intro-header .page-heading h1,
.intro-header .post-heading h1,
.intro-header .page-subheading,
.intro-header .post-subheading {
  text-align: left !important;
}

.intro-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 2.5rem;
  transition: background-color var(--transition-normal);
}

.page-heading h1,
.post-heading h1 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  text-align: left !important;
}

.intro-header .page-heading hr.small,
.intro-header .post-heading hr.small,
.page-heading hr,
.post-heading hr {
  margin: 1.25rem 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 56px !important;
  height: 4px !important;
  background: var(--accent-gradient) !important;
  border: none !important;
  border-radius: 2px !important;
  display: block !important;
}

.page-heading .page-subheading,
.post-heading .post-subheading {
  font-family: var(--font-body) !important;
  font-weight: 400;
  color: var(--text-muted) !important;
  font-size: 1.2rem;
  line-height: 1.6;
  display: block;
  text-align: left !important;
}


/* --------------------------------------------------------------------------
   4. Breadcrumb Navigation
   -------------------------------------------------------------------------- */
.pro-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pro-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.pro-breadcrumb a:hover {
  color: var(--accent-primary);
}

.pro-breadcrumb .separator {
  color: var(--border-color);
  font-size: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   5. Interactive Project Cards (Split Grid & Stacked)
   -------------------------------------------------------------------------- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 2.5rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-primary);
}

.project-card-image-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.project-card-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.02);
}

.project-card-body {
  padding: 2rem 2.25rem;
}

.project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.role-badge {
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-primary);
}

.timeline-pill {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-code);
}

.tech-stack-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tech-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: var(--font-code);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  background: var(--bg-subtle);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

.metric-item .metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.metric-item .metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-pro-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-pro-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
  color: #ffffff !important;
}

.btn-pro-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-pro-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Skills Progress Bars (Animated)
   -------------------------------------------------------------------------- */
.skills-section {
  margin: 2rem 0;
}

.skill-item {
  margin-bottom: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-percentage {
  color: var(--accent-primary);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.skill-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-subtle);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   7. Professional Experience Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 3px;
  background: var(--border-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-primary);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--card-shadow-hover);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-title {
  margin: 0;
  font-size: 1.2rem;
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-family: var(--font-code);
}

/* --------------------------------------------------------------------------
   8. Blog Enhancement & Tag Filter Pills
   -------------------------------------------------------------------------- */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.filter-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.blog-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--card-shadow-hover);
}

.newsletter-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

/* --------------------------------------------------------------------------
   9. Interactive Contact Form & Floating Feedback
   -------------------------------------------------------------------------- */
.contact-container {
  max-width: 720px;
  margin: 2rem auto;
}

.form-group-pro {
  margin-bottom: 1.5rem;
}

.form-label-pro {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input-pro {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input-pro:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   10. Lightbox Modal & Back-to-Top Button
   -------------------------------------------------------------------------- */
.pro-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pro-lightbox.active {
  display: flex;
  opacity: 1;
}

.pro-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.pro-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.pro-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

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

.back-to-top:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

/* Toast Notification */
.pro-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1060;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.pro-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   11. Profile Portrait Styling (About Section)
   -------------------------------------------------------------------------- */
.profile-pic-frame {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-pic-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.profile-pic-img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 16px;
  display: block;
  background: var(--bg-card);
}

@media (max-width: 767px) {
  .profile-pic-frame {
    margin: 1.5rem auto 1.5rem;
    max-width: 200px;
  }
}


/* --------------------------------------------------------------------------
   12. Print Stylesheet (For PDF Resume Download)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .navbar-custom,
  footer,
  .back-to-top,
  .pro-toast,
  .btn-pro,
  .theme-toggle-btn {
    display: none !important;
  }

  .intro-header {
    padding: 1rem 0 !important;
    border-bottom: none !important;
  }

  .page-heading h1 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-size: 20pt !important;
  }

  .project-card,
  .timeline-content {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    page-break-inside: avoid;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}