/* ==========================================================================
   MUHAMMAD NIZAR ARHAMNI - PORTFOLIO STYLESHEET
   Design Theme: Modern Clean Light (Editorial Minimalist / Anti-AI-Slop)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface & Canvas */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;
  --bg-badge: #F1F5F9;

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-subtle: #E2E8F0;
  --border-focus: #CBD5E1;
  --border-strong: #94A3B8;

  /* Brand Accents */
  --accent-primary: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-subtle: #EFF6FF;
  --accent-border: #BFDBFE;

  /* Status Colors */
  --status-active: #10B981;
  --status-active-subtle: #ECFDF5;
  --status-active-border: #A7F3D0;

  /* Shadows (Soft & Natural Ambient) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);

  /* Typography Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Sizing */
  --container-width: 1140px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography & Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Navbar (Sticky & Blur)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1.5px solid var(--border-subtle);
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Buttons & Pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: #1E293B;
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.btn-accent {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Tech Pills */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--border-focus);
  background-color: #E2E8F0;
}

/* Status Indicator Dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background-color: var(--status-active-subtle);
  border: 1px solid var(--status-active-border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #065F46;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-active);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-content {
  max-width: 860px;
}

.hero-status-wrapper {
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-headline .text-gradient {
  color: var(--accent-primary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   7. Bento Metric Impact Strip
   -------------------------------------------------------------------------- */
.metrics-section {
  padding-top: 16px;
  padding-bottom: 48px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.metric-number.accent {
  color: var(--accent-primary);
}

.metric-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8. Featured Flagship Projects (Alternating Showcase)
   -------------------------------------------------------------------------- */
.projects-showcase-wrapper {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project-showcase-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.project-showcase-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

/* Alternating rows on desktop */
.project-showcase-card:nth-child(even) .showcase-grid {
  grid-template-columns: 1fr 1.15fr;
}

.project-showcase-card:nth-child(even) .showcase-visual {
  order: 2;
}

.project-showcase-card:nth-child(even) .showcase-content {
  order: 1;
}

/* Visual Container (Browser Window Mockup) */
.showcase-visual {
  padding: 28px;
  background: linear-gradient(145deg, #F8FAFC 0%, #EFF6FF 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
}

.project-showcase-card:nth-child(even) .showcase-visual {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

.browser-mockup {
  width: 100%;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.project-showcase-card:hover .browser-mockup {
  transform: scale(1.015);
}

.mockup-header {
  height: 32px;
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #CBD5E1;
}

.mockup-dot.red { background-color: #FDA4AF; }
.mockup-dot.yellow { background-color: #FDE047; }
.mockup-dot.green { background-color: #86EFAC; }

.mockup-content {
  position: relative;
  overflow: hidden;
  background-color: #F1F5F9;
}

.mockup-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Content Container */
.showcase-content {
  padding: 40px;
}

.project-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.project-timeline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.project-problem-solution {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Impact Highlight Box */
.project-impact-box {
  background-color: #F8FAFC;
  border-left: 3px solid var(--accent-primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.project-impact-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

.showcase-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   9. Secondary Projects (Compact Grid)
   -------------------------------------------------------------------------- */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.secondary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.secondary-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.secondary-img-wrapper {
  height: 170px;
  background-color: #F1F5F9;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-base);
}

.secondary-card:hover .secondary-img {
  transform: scale(1.03);
}

.secondary-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.secondary-body h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.secondary-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.secondary-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   10. Skills & Technology Stack
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.skill-category-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.skill-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   11. Experience, Awards & Education Timeline
   -------------------------------------------------------------------------- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.timeline-column {
  display: flex;
  flex-direction: column;
}

.timeline-column-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-column-title i {
  color: var(--accent-primary);
}

.timeline-wrapper {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-primary);
}

.timeline-dot.gold {
  border-color: #D97706;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Frictionless Contact Section
   -------------------------------------------------------------------------- */
.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-header {
  max-width: 600px;
  margin: 0 auto 36px;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.contact-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Copy Email Component */
.copy-email-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.copy-email-box:hover {
  border-color: var(--accent-primary);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
}

.copy-email-feedback {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.copy-email-feedback.show {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-headline {
    font-size: 2.6rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid,
  .project-showcase-card:nth-child(even) .showcase-grid {
    grid-template-columns: 1fr;
  }

  .project-showcase-card:nth-child(even) .showcase-visual {
    order: 1;
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .showcase-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
  }

  .mockup-img {
    height: 240px;
  }

  .showcase-content {
    padding: 32px;
  }

  .secondary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none; /* simple toggle or drawer */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: var(--shadow-md);
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cv-text,
  .nav-github-text {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.95rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px 20px;
  }

  .contact-headline {
    font-size: 1.85rem;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-brand {
    font-size: 0.92rem;
    gap: 8px;
  }

  .brand-avatar {
    width: 30px;
    height: 30px;
  }

  .hero-headline {
    font-size: 1.85rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .showcase-content {
    padding: 24px 16px;
  }

  .project-title {
    font-size: 1.35rem;
  }

  .bento-card {
    padding: 20px 16px;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .secondary-body {
    padding: 18px 16px;
  }

  .skill-category-card {
    padding: 22px 16px;
  }
}

/* --------------------------------------------------------------------------
   15. Helper Utilities
   -------------------------------------------------------------------------- */
.d-none { display: none !important; }

@media (min-width: 576px) {
  .d-sm-inline { display: inline !important; }
}

.align-self-start { align-self: flex-start !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.text-danger { color: #DC2626 !important; }
.text-success { color: #16A34A !important; }
.text-primary { color: #2563EB !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #FFFFFF !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.bg-light { background-color: var(--bg-surface-subtle) !important; }
.border { border: 1px solid var(--border-subtle) !important; }



/* --------------------------------------------------------------------------
   16. Timeline Proof / Certificate Buttons
   -------------------------------------------------------------------------- */
.timeline-proof-action {
  margin-top: 12px;
}

.btn-proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-proof:hover {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-proof i {
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
}

.btn-proof:hover i {
  transform: scale(1.15);
}

.btn-proof.gold {
  color: #B45309;
  background-color: #FEF3C7;
  border-color: rgba(217, 119, 6, 0.3);
}

.btn-proof.gold:hover {
  background-color: #D97706;
  color: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* --------------------------------------------------------------------------
   17. Certificate Lightbox Modal
   -------------------------------------------------------------------------- */
.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.proof-modal.active {
  visibility: visible;
  opacity: 1;
}

.proof-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.proof-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 40px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.proof-modal.active .proof-modal-dialog {
  transform: scale(1) translateY(0);
}

.proof-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--bg-surface);
}

.proof-modal-title-group {
  flex-grow: 1;
}

.proof-modal-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.proof-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
}

.proof-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.proof-modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.proof-modal-close:hover {
  background-color: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.proof-modal-body {
  position: relative;
  padding: 16px 20px;
  overflow-y: auto;
  background-color: #0F172A08;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: calc(85vh - 150px);
}

.proof-modal-loading {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: modalSpin 0.7s linear infinite;
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

.proof-modal-preview {
  width: 100%;
  display: flex;
  justify-content: center;
}

.proof-modal-img {
  max-width: 100%;
  max-height: min(58vh, 500px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.12);
  background-color: #FFFFFF;
  transition: opacity 0.2s ease;
}

.proof-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-modal-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.proof-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .proof-modal {
    padding: 12px;
  }

  .proof-modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .proof-modal-header {
    padding: 14px 16px;
  }

  .proof-modal-title {
    font-size: 1rem;
  }

  .proof-modal-body {
    padding: 12px;
    max-height: 50vh;
  }

  .proof-modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .proof-modal-meta {
    justify-content: center;
  }

  .proof-modal-actions {
    justify-content: stretch;
  }

  .proof-modal-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
