/* ==========================================================================
   Jubayed Hossain Dipu — Executive Swiss-Grid Minimalism Design System
   Bootstrap 5.3 Grid + Custom Architectural CSS
   ========================================================================== */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --accent-primary: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EFF6FF;
  --border-subtle: #E2E8F0;
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  padding-top: 70px;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.font-mono-badge {
  font-family: var(--font-mono);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Pinned Glassmorphic Header & Luxury Navbar
   -------------------------------------------------------------------------- */
.pinned-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
}

.pinned-header-wrap.unpinned-header {
  position: relative !important;
  top: auto !important;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 50%, #10B981 100%);
  z-index: 1060;
  transition: width 0.06s ease-out;
}

.swiss-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 0.65rem 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiss-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.03);
  border-bottom-color: #CBD5E1;
  padding: 0.48rem 0;
}

/* Brand Logo Wrap & Emblem */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-heading);
  transition: transform 0.2s ease;
}

.brand-logo-wrap:hover {
  transform: translateY(-1px);
}

.brand-logo-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22), 0 0 0 1.5px rgba(37, 99, 235, 0.35);
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-logo-wrap:hover .brand-avatar-img {
  transform: scale(1.08);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 0 0 2px var(--accent-primary);
}

.logo-pulse-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10B981;
  border: 1.5px solid #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  line-height: 1;
}

.brand-title .accent-dot {
  color: var(--accent-primary);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
}

/* Nav Links - Modern Pill Micro-interactions */
.swiss-navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: all 0.18s ease;
  position: relative;
}

.swiss-navbar .nav-link:hover {
  color: #0F172A;
  background-color: rgba(15, 23, 42, 0.05);
}

.swiss-navbar .nav-link.active {
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

/* Nav Call-To-Action Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35);
  color: #FFFFFF !important;
}

.nav-cta-btn-sm {
  font-size: 0.78rem;
  padding: 0.32rem 0.75rem;
}

/* Admin Lock Button in Nav */
.nav-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748B;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav-admin-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Nav Squircle Mini Social Button */
.nav-squircle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-color, #475569);
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-squircle-btn:hover {
  transform: translateY(-2px);
  color: var(--brand-color, var(--accent-primary));
  border-color: var(--brand-color, var(--accent-primary));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  background-color: #FFFFFF;
}

/* Mobile Nav Social Drawer Wrap */
.mobile-nav-social-wrap {
  border-color: var(--border-subtle) !important;
}

/* --------------------------------------------------------------------------
   Section Scaffolding
   -------------------------------------------------------------------------- */
.section-block {
  padding: 5rem 0;
}

.section-block.bg-surface {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Executive Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 5.25rem 0 4.75rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-subtle);
}

/* Hero Main 2-Column Row (Always Top-Aligned on all screens) */
.hero-main-row {
  align-items: flex-start !important;
}

.hero-col-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-col-portrait {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-name {
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-summary {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 620px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

/* Squircle Social Icon Row (Matching Reference Image) */
.squircle-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.squircle-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-color, #475569);
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.squircle-social-btn:hover {
  transform: translateY(-3px);
  color: var(--brand-color, #0F172A);
  border-color: var(--brand-color, var(--accent-primary));
  box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
  background-color: #FFFFFF;
}

.squircle-social-btn:active {
  transform: translateY(-1px);
}

/* Specific brand styling for squircle buttons */
.squircle-social-btn.squircle-facebook {
  color: #1877F2;
}

.squircle-social-btn.squircle-linkedin {
  color: #0A66C2;
}

.squircle-social-btn.squircle-twitter {
  color: #0F172A;
}

.squircle-social-btn.squircle-github {
  color: #24292F;
}

.squircle-social-btn.squircle-youtube {
  color: #FF0000;
}

.squircle-social-btn.squircle-website {
  color: #0284C7;
}

.squircle-social-btn.squircle-email {
  color: #EA4335;
}

.squircle-social-btn.squircle-phone {
  color: #10B981;
}

.squircle-social-btn:hover.squircle-facebook {
  border-color: #1877F2;
  background-color: rgba(24, 119, 242, 0.04);
}

.squircle-social-btn:hover.squircle-linkedin {
  border-color: #0A66C2;
  background-color: rgba(10, 102, 194, 0.04);
}

.squircle-social-btn:hover.squircle-twitter {
  border-color: #0F172A;
  background-color: rgba(15, 23, 42, 0.04);
}

.squircle-social-btn:hover.squircle-github {
  border-color: #24292F;
  background-color: rgba(36, 41, 47, 0.04);
}

.squircle-social-btn:hover.squircle-youtube {
  border-color: #FF0000;
  background-color: rgba(255, 0, 0, 0.04);
}

.squircle-social-btn:hover.squircle-website {
  border-color: #0284C7;
  background-color: rgba(2, 132, 199, 0.04);
}

.squircle-social-btn:hover.squircle-email {
  border-color: #EA4335;
  background-color: rgba(234, 67, 53, 0.04);
}

.squircle-social-btn:hover.squircle-phone {
  border-color: #10B981;
  background-color: rgba(16, 185, 129, 0.04);
}

.btn-royal {
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-royal:hover,
.btn-royal:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.btn-outline-swiss {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-outline-swiss:hover,
.btn-outline-swiss:focus {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.hero-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.social-chip i {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.social-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-soft);
}

/* Framed Portrait Card - Desktop (Top Aligned with Name) */
.portrait-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 350px;
  margin-top: 0 !important;
  align-self: flex-start !important;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portrait-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.portrait-frame {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portrait-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-inline: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.portrait-meta strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Swiss Cards & Categorized Skills Grid
   -------------------------------------------------------------------------- */
.swiss-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.swiss-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-cat-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-heading);
}

.skill-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-heading);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  line-height: 1.3;
  transition: all 0.16s ease;
}

.tech-pill:hover {
  background-color: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Vertical Timeline (Experience, Education & Certifications)
   -------------------------------------------------------------------------- */
.timeline-list {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border-subtle);
}

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

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

.timeline-marker {
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 1.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--card-shadow-hover);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}

.timeline-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-heading);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.clean-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.clean-bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  color: var(--text-body);
}

.clean-bullet-list li:last-child {
  margin-bottom: 0;
}

.clean-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Projects Showcase Cards
   -------------------------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.project-badge.badge-progress {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.project-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-heading);
  margin: 0.9rem 0 1rem;
}

.project-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent-primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-source-link:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   References & Contact Section
   -------------------------------------------------------------------------- */
.ref-type-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.ref-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.ref-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.contact-form-card .form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.contact-form-card .form-control {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem;
  color: var(--text-heading);
  background-color: var(--bg-secondary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-form-card .form-control:focus {
  background-color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Footer & Subtle Reveal Animations
   -------------------------------------------------------------------------- */
.swiss-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Scaling (360px - 991px)
   Preserves Exact Desktop Design, Swiss Aesthetic, Color & Visual Hierarchy
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .hero-section {
    padding: 3.5rem 0 3rem;
  }

  .section-block {
    padding: 3.5rem 0;
  }

  .portrait-card {
    max-width: 310px;
    padding: 0.75rem;
    margin-top: 0 !important;
    align-self: flex-start !important;
  }

  .swiss-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-top: 0.65rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .swiss-navbar .navbar-nav .nav-link {
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 64px;
  }

  body {
    padding-top: 58px;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .swiss-navbar {
    padding: 0.45rem 0;
  }

  .brand-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .nav-admin-link {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  /* Summary Section: Name and Picture on the EXACT SAME TOP LINE */
  .hero-section {
    padding: 2.25rem 0 1.85rem;
  }

  .hero-main-row {
    align-items: flex-start !important;
  }

  .hero-col-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 0.35rem;
  }

  .hero-col-portrait {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 0.35rem;
  }

  .hero-name {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: clamp(1.22rem, 5.2vw, 1.68rem);
    line-height: 1.15;
    margin-bottom: 0.35rem;
  }

  .hero-role {
    font-size: clamp(0.72rem, 2.9vw, 0.88rem);
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }

  .hero-summary {
    font-size: clamp(0.68rem, 2.6vw, 0.82rem);
    line-height: 1.4;
    margin-bottom: 0.65rem;
  }

  /* Squircle Social Buttons: Mini Proportional Row */
  .squircle-social-row {
    gap: 0.4rem;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .squircle-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  /* Inline CTA Buttons - Preserving Desktop Look */
  .hero-btn-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .btn-royal,
  .btn-outline-swiss {
    width: auto !important;
    flex: 0 1 auto;
    font-size: 0.72rem;
    padding: 0.42rem 0.8rem;
    border-radius: 6px;
    gap: 0.35rem;
    white-space: nowrap;
  }

  /* Portrait Card: Starts at Top (Same Line as Name) */
  .portrait-card {
    width: 100%;
    max-width: 100%;
    padding: 0.45rem;
    border-radius: 10px;
    margin-top: 0 !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    align-self: flex-start !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .portrait-frame {
    border-radius: 8px;
    aspect-ratio: 4 / 5;
  }

  .portrait-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-top: 0.35rem;
    padding-inline: 0.15rem;
    font-size: 0.65rem;
    line-height: 1.25;
  }

  .portrait-meta strong {
    font-size: 0.65rem;
  }

  /* Section Spacing & Headers */
  .section-block {
    padding: 2.5rem 0;
  }

  .section-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
    margin-bottom: 0.4rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Skills 2-Column Grid on Mobile */
  .swiss-card {
    padding: 0.85rem;
    border-radius: 10px;
  }

  .skill-cat-header {
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .skill-cat-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .skill-cat-title {
    font-size: 0.82rem;
  }

  .skill-badges-wrap {
    gap: 0.3rem;
  }

  .tech-pill {
    font-size: 0.66rem;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
  }

  /* Work Experience Timeline */
  .timeline-list {
    padding-left: 1.25rem;
    border-left-width: 2px;
  }

  .timeline-marker {
    left: calc(-1.25rem - 5px);
    top: 1.15rem;
    width: 9px;
    height: 9px;
  }

  .timeline-card {
    padding: 0.95rem 1rem;
    border-radius: 10px;
  }

  .timeline-card h3 {
    font-size: 0.92rem;
  }

  .timeline-date,
  .timeline-score {
    font-size: 0.68rem;
    padding: 0.18rem 0.48rem;
  }

  .clean-bullet-list li {
    font-size: 0.78rem;
    line-height: 1.45;
    padding-left: 0.9rem;
    margin-bottom: 0.35rem;
  }

  /* Projects Showcase */
  .project-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .project-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.48rem;
  }

  .project-title {
    font-size: 0.98rem;
    margin: 0.5rem 0 0.65rem;
  }

  .btn-source-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  /* Contact */
  .contact-form-card {
    padding: 1.15rem;
    border-radius: 10px;
  }

  .contact-info-item {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .contact-info-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .contact-form-card .form-label {
    font-size: 0.78rem;
  }

  .contact-form-card .form-control {
    font-size: 0.82rem;
    padding: 0.48rem 0.7rem;
  }

  /* Footer */
  .swiss-footer {
    padding: 1.35rem 0;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(1.1rem, 5.2vw, 1.35rem);
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero-role {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
  }

  .hero-summary {
    font-size: 0.66rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

  .squircle-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .btn-royal,
  .btn-outline-swiss {
    font-size: 0.68rem;
    padding: 0.35rem 0.55rem;
    gap: 0.25rem;
  }

  .portrait-card {
    padding: 0.35rem;
    margin-top: 0 !important;
    align-self: flex-start !important;
  }

  .portrait-meta {
    font-size: 0.58rem;
  }

  .portrait-meta strong {
    font-size: 0.58rem;
  }

  .swiss-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem !important;
  }
}