/* =========================================================
   Hemath Portfolio - Bootstrap-only theme
   Recreates the original UIKit look using Bootstrap 5 utilities.
   ========================================================= */

:root {
  --hm-primary: #1e87f0;
  --hm-red: #f0506e;
  --hm-blue: #2336b6;
  --hm-inverse: #05182c;
  --hm-text: #000;
  --hm-muted: #666;
  --hm-border: #e5e5e5;
  --hm-bg: #fff;
  --hm-section-padding: 80px;
  --hm-navbar-h: 78px;
}

* { box-sizing: border-box; }

/* IMPORTANT: do NOT put overflow:hidden on html or body — it breaks position:sticky */
html, body {
  font-family: 'Poppins', sans-serif;
  color: var(--hm-text);
  background: var(--hm-bg);
  scroll-behavior: smooth;
}

a { color: var(--hm-primary); text-decoration: none; }
a:hover { color: var(--hm-blue); }

/* ---------- Page loader ---------- */
.hm-pageloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
  /* CSS-only fallback: auto-fade even if JS is blocked / never fires */
  animation: hm-loader-fade 2.5s forwards;
}
.hm-pageloader.hidden { opacity: 0; visibility: hidden; }
.hm-pageloader .spinner-border { color: var(--hm-primary); width: 3rem; height: 3rem; }
@keyframes hm-loader-fade {
  0%, 70%   { opacity: 1; visibility: visible; }
  99%       { opacity: 0; visibility: visible; }
  100%      { opacity: 0; visibility: hidden; }
}

/* ---------- Navbar ---------- */
.hm-navbar {
  background: #fff;
  border-bottom: 1px solid var(--hm-border);
  padding: 0.5rem 0;
  min-height: var(--hm-navbar-h);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/*
  IMPORTANT: position:sticky on the inner <nav> doesn't work because
  the <header> wrapper has the same height as the nav, so the sticky
  has no room to stick within its parent. Make the <header> itself
  the sticky element.
*/
body > header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Slide / video variants use fixed-top — keep <header> non-sticky there */
body > header:has(> .hm-navbar.fixed-top) {
  position: static;
}
.hm-navbar.fixed-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
}

/* Make sure no ancestor accidentally clips/scrolls the navbar */
header, main { overflow: visible; }
.hm-navbar .navbar-brand img { max-height: 60px; width: auto; }
.hm-navbar .nav-link {
  color: #000;
  font-weight: 500;
  text-transform: capitalize;
  padding: 1rem 1rem;
  position: relative;
}
.hm-navbar .nav-link:hover,
.hm-navbar .nav-link.active {
  color: var(--hm-primary);
}
.hm-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 8px;
  height: 2px;
  background: var(--hm-primary);
}

/* ---------- Section frame ---------- */
.hm-section,
.hm-hero {
  position: relative;
  padding: var(--hm-section-padding) 0;
  border-top: 1px solid var(--hm-border);
}
.hm-hero { padding: 120px 0 80px; }
.hm-section:first-of-type,
.hm-hero { border-top: 0; }

.hm-section-padding { padding: var(--hm-section-padding) 0; }
.hm-border-top { border-top: 1px solid var(--hm-border); }
.hm-border-bottom { border-bottom: 1px solid var(--hm-border); }

/* ---------- Section point (sticky section indicator) ---------- */
.hm-section-point-wrapper {
  position: sticky;
  top: calc(var(--hm-navbar-h) + 1rem);
  z-index: 5;
  margin: 1rem 0 2rem;
  padding: 0.25rem 0;
  pointer-events: none;
}
.hm-section-point {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--hm-muted);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hm-border);
  border-radius: 999px;
  padding: .45rem 1rem;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}
.hm-section-point sup {
  color: var(--hm-primary);
  font-size: 13px;
  font-weight: 700;
  top: 0;
}
.hm-section-point.right {
  float: right;
}

/* ---------- Hero / Home ---------- */
.hm-hero {
  padding: 150px 0 120px;
  text-align: center;
}
.hm-hero img.hm-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.75rem;
}
.hm-hero h1 {
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -3px;
  margin: 0 0 1.25rem;
}
.hm-gradient-text {
  background: -webkit-linear-gradient(45deg, #09009f, #00ff95 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-myjob {
  font-size: 25px;
  font-weight: 700;
}
.hm-myjob span.typed {
  text-decoration: underline;
  color: var(--hm-primary);
}
@media (max-width: 767.98px) {
  .hm-hero { padding: 110px 0 80px; }
  .hm-hero h1 { font-size: 56px; letter-spacing: -2px; }
  .hm-hero img.hm-avatar { width: 150px; height: 150px; }
  .hm-myjob { font-size: 20px; }
}

/* ---------- Service boxes ---------- */
.hm-services {
  padding: 1.25rem 0;
}
.hm-service {
  text-align: center;
  padding: .75rem 1rem;
}
.hm-service .icon {
  font-size: 1.75rem;
  color: var(--hm-primary);
  margin-bottom: .4rem;
  line-height: 1;
}
.hm-service .icon img {
  width: 36px !important;
  height: 36px !important;
}
.hm-service h5 {
  font-size: .95rem;
}
.hm-service h5 { font-weight: 600; margin: 0; }
.hm-services .col-divider + .col-divider {
  border-left: 1px solid var(--hm-border);
}
@media (max-width: 991.98px) {
  .hm-services .col-divider:nth-child(odd) { border-left: 0; }
}

/* ---------- Section title ---------- */
.hm-section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hm-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hm-border);
}

/* ---------- Resume / Sticky left nav ---------- */
.hm-side-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--hm-border);
}
.hm-side-nav li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  color: var(--hm-muted);
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.hm-side-nav li a:hover,
.hm-side-nav li.active a {
  color: var(--hm-primary);
  border-left-color: var(--hm-primary);
}

/* ---------- Resume items ---------- */
.hm-resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hm-resume-list > li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--hm-border);
}
.hm-resume-list > li:first-child { border-top: 0; }

.hm-resume-item-date {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #f5f7fa;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--hm-muted);
  margin-bottom: .5rem;
}
.hm-resume-item-date i { color: var(--hm-primary); }

.hm-skill-group h5 {
  font-weight: 300;
  font-size: 1rem;
  margin: 1rem 0 .75rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hm-skill-group h5::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hm-border);
}
.hm-skill-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}
.hm-skill-tech > div {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hm-skill-tech img { width: 25px; height: 25px; }

/* ---------- Skill highlight pills ---------- */
.hm-highlight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .55rem;
}
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hm-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hm-pill i     { font-size: .8rem; opacity: .9; }
.hm-pill-primary   { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.hm-pill-secondary { background: #6c757d; }
.hm-pill-success   { background: linear-gradient(135deg, #10b981, #059669); }
.hm-pill-info      { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.hm-pill-warning   { background: linear-gradient(135deg, #f59e0b, #d97706); color:#1a1a1a; }
.hm-pill-danger    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.hm-pill-dark      { background: #1f2937; }
.hm-pill-image {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid var(--hm-border, #e5e7eb);
  padding: .4rem .85rem .4rem .55rem;
}
.hm-pill-image img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

/* ---------- My Projects list (matches legacy uk-list-divider layout) ---------- */
.hm-projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hm-projects-list > li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hm-border, #e5e7eb);
}
.hm-projects-list > li:last-child,
.hm-projects-list > li.hm-pg-last { border-bottom: 0; }

.hm-project-meta {
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: .35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.hm-status-pill {
  display: inline-block;
  padding: .15rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}
.hm-status-completed { background: #16a34a; }   /* green */
.hm-status-progress  { background: #f97316; }   /* orange */
.hm-status-hold      { background: #dc2626; }   /* red */
.hm-project-title {
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 .5rem 0;
  line-height: 1.25;
}
.hm-project-title a {
  color: #111;
  text-decoration: none;
}
.hm-project-title a:hover { color: var(--hm-primary, #ee4f72); }
.hm-project-desc { margin: 0 0 .75rem 0; }

.hm-project-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.hm-project-icons {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hm-project-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #111;
  background: #f5f7fa;
  font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}
.hm-project-icons a:hover { background: var(--hm-primary, #ee4f72); color: #fff; }

.hm-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.hm-tech-pill {
  font-weight: 600;
  font-size: .78rem;
  padding: .4em .75em;
  background: #cfe2ff;
  border: 1px solid #b6d4fe;
  color: #052c65;
}

/* Black "Screenshots" pill that opens the carousel modal */
.hm-screenshots-pill {
  font-weight: 600;
  font-size: .78rem;
  padding: .4em .85em;
  background: #111;
  border: 1px solid #111;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hm-screenshots-pill:hover,
.hm-screenshots-pill:focus {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Screenshot carousel modal */
.hm-shots-modal .modal-content { background: #111; color: #f5f7fa; border: 0; }
.hm-shots-modal .modal-header  { border-bottom: 1px solid #222; }
.hm-shots-modal .modal-title   { color: #f5f7fa; }
.hm-shots-modal .btn-close     { filter: invert(1) grayscale(100%) brightness(200%); }
.hm-shots-carousel .carousel-item img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  background: #000;
}
.hm-shots-carousel .carousel-control-prev,
.hm-shots-carousel .carousel-control-next { width: 6%; }
.hm-shots-carousel .carousel-indicators [data-bs-target] {
  background-color: #fff;
  opacity: .6;
}
.hm-shots-carousel .carousel-indicators .active { opacity: 1; }

/* ---------- Per-subsection paginator (left-aligned + right-side rule) ---------- */
.hm-section-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.hm-section-pager .pagination {
  margin: 0;
  flex-shrink: 0;
}
.hm-section-pager .page-link {
  border-radius: 6px;
  margin-right: .25rem;
  padding: .25rem .65rem;
  font-size: .85rem;
  color: #111;
  border-color: var(--hm-border, #e5e7eb);
  background: #fff;
}
.hm-section-pager .page-item.active .page-link {
  background: var(--hm-primary, #ee4f72);
  border-color: var(--hm-primary, #ee4f72);
  color: #fff;
}
.hm-section-pager .page-link:hover {
  background: #f5f7fa;
  color: #111;
}
.hm-section-pager .page-item.active .page-link:hover {
  background: var(--hm-primary, #ee4f72);
  color: #fff;
}
.hm-section-pager .hm-pager-line {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--hm-border, #e5e7eb);
  margin: 0;
  opacity: 1;
}

/* ---------- Blog: publisher pills, category pills, cards ---------- */
.hm-publisher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.hm-publisher-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #111;
  color: #fff;
  padding: .35rem .75rem .35rem .55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  border: 1px solid #111;
  cursor: pointer;
  opacity: .55;
  transition: filter .15s ease, transform .15s ease, opacity .15s ease;
}
.hm-publisher-pill:hover     { opacity: 1; filter: brightness(1.2); transform: translateY(-1px); color: #fff; }
.hm-publisher-pill.is-active { opacity: 1; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hm-publisher-pill img {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}
.hm-publisher-count {
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-size: .72rem;
  padding: .05rem .5rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.hm-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hm-blog-cat {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease, transform .15s ease;
}
.hm-blog-cat:hover     { opacity: 1; transform: translateY(-1px); }
.hm-blog-cat.is-active { opacity: 1; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.hm-blog-cat-count {
  background: rgba(255,255,255,.8);
  color: #111;
  border-radius: 999px;
  font-size: .68rem;
  padding: .05rem .5rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.hm-blog-cat-all {
  background: #16a34a;   /* green */
  color: #ffffff;
}
.hm-blog-cat.is-hidden  { display: none !important; }

.hm-blog-card {
  background: #000;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hm-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  text-decoration: none;
  color: inherit;
}
.hm-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-blog-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: 1.2rem;
}
.hm-blog-card-cat {
  position: absolute;
  top: .75rem; left: .75rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hm-blog-card-body {
  padding: 1rem 1.25rem 1.25rem;
}
.hm-blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .55rem;
  line-height: 1.35;
}
.hm-blog-card-title a:hover { text-decoration: underline; }
.hm-blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.hm-blog-card-pub img {
  height: 18px; width: auto; object-fit: contain; display: block;
}

.hm-blog-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}
.hm-blog-more:hover { color: var(--hm-primary, #ee4f72); text-decoration: none; }

/* ---------- Certification issuer (color + optional logo) ---------- */
.hm-cert-issuer {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
}
.hm-cert-issuer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.hm-cert-issuer strong { font-weight: 700; }

/* ---------- My Story (FB-style cards + animated left timeline) ---------- */
.hm-story-card {
  background: #fff;
  border: 1px solid var(--hm-border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
}
.hm-story-card-header {
  padding: .9rem 1rem .65rem;
}
.hm-story-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hm-story-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #e5e7eb;
  color: #111;
}
.hm-story-avatar-placeholder { font-size: 1rem; }
.hm-story-author-meta strong {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .95rem;
  line-height: 1.2;
}
.hm-story-verified { color: #1d9bf0; font-size: .8rem; }
.hm-story-author-meta small { font-size: .8rem; }

.hm-story-caption {
  padding: 0 1rem .85rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.hm-story-media {
  background: #000;
  display: block;
}
.hm-story-image,
.hm-story-video {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: contain;
  background: #000;
}
.hm-story-media-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
}
.hm-story-media-grid .hm-story-image,
.hm-story-media-grid .hm-story-video {
  height: 240px;
  object-fit: cover;
  max-height: none;
}

.hm-story-card-footer {
  padding: .65rem 1rem .9rem;
}
.hm-story-tl-pill {
  display: inline-flex;
  align-items: center;
  background: #f5f7fa;
  color: #4b5563;
  border-radius: 999px;
  padding: .15rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}

/* Left timeline on /stories */
.hm-story-timeline {
  position: relative;
  padding-left: 1.5rem;
}
.hm-story-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--hm-primary, #ee4f72), #e5e7eb);
}
.hm-tl-item {
  position: relative;
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  text-decoration: none;
  color: #111;
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
  transform: translateX(-8px);
  animation: hmTlIn .45s ease forwards;
}
.hm-tl-item:nth-child(2) { animation-delay: .05s; }
.hm-tl-item:nth-child(3) { animation-delay: .1s; }
.hm-tl-item:nth-child(4) { animation-delay: .15s; }
.hm-tl-item:nth-child(5) { animation-delay: .2s; }
.hm-tl-item:nth-child(6) { animation-delay: .25s; }
.hm-tl-item:nth-child(7) { animation-delay: .3s; }
.hm-tl-item:nth-child(n+8) { animation-delay: .35s; }
@keyframes hmTlIn {
  to { opacity: 1; transform: translateX(0); }
}
.hm-tl-item:hover { transform: translateX(2px); color: var(--hm-primary, #ee4f72); }
.hm-tl-item.is-active { color: #111; }
.hm-tl-item.is-active strong { color: var(--hm-primary, #ee4f72); }
.hm-tl-dot {
  position: absolute;
  left: -1.5rem;
  top: 1rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--hm-primary, #ee4f72);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hm-tl-item.is-active .hm-tl-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(238,79,114,.18);
}
.hm-tl-body strong { display: block; font-weight: 700; line-height: 1.2; }
.hm-tl-body small  { font-size: .78rem; }

/* Story grid a touch tighter on small screens */
@media (max-width: 575.98px) {
  .hm-story-media-grid .hm-story-image,
  .hm-story-media-grid .hm-story-video { height: 180px; }
}

/* ---------- Action strip (dynamic CTA bar) ---------- */
.hm-action-strip {
  padding: 90px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.hm-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.hm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  line-height: 1.2;
}
.hm-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  filter: brightness(1.05);
  color: inherit; /* preserve inline text color on hover */
}
.hm-action-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.hm-action-btn i {
  font-size: 1rem;
}
@media (max-width: 575.98px) {
  .hm-action-strip { padding: 60px 0; }
  .hm-action-btn   { font-size: .9rem; padding: .7rem 1.2rem; }
}

/* ---------- Parallax CTA strip ---------- */
.hm-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 90px 0;
  text-align: center;
  color: #fff;
}
.hm-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 135, 240, 0.85);
}
.hm-parallax > .container { position: relative; }
.hm-btn-hire {
  background: var(--hm-red);
  border-color: var(--hm-red);
  padding: .75rem 2rem;
  font-weight: 600;
}
.hm-btn-hire:hover { background: #d83a58; border-color: #d83a58; }

/* ---------- Portfolio / Fine works cards ---------- */
.hm-work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: .25rem;
  overflow: hidden;
  margin: 1rem 0;
}
.hm-work-card .media {
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1rem;
}
.hm-work-card .media img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.hm-work-card .body { padding: 1.5rem; }
.hm-work-card h3 { font-weight: 700; margin-bottom: .5rem; }
@media (max-width: 575.98px) {
  .hm-work-card { grid-template-columns: 1fr; }
}

/* ---------- Stats / facts ---------- */
.hm-fact {
  text-align: center;
  padding: 1.5rem;
}
.hm-fact .count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hm-primary);
}
.hm-fact .desc { color: var(--hm-muted); font-size: .9rem; }

/* ---------- Project article (My Projects list) ---------- */
.hm-article {
  border-top: 1px solid var(--hm-border);
  padding: 1.5rem 0;
}
.hm-article:first-child { border-top: 0; }
.hm-article time { font-size: .85rem; color: var(--hm-muted); }
.hm-article h3 a { color: #000; font-weight: 600; }
.hm-article h3 a:hover { color: var(--hm-primary); }
.hm-article .icons {
  display: inline-flex;
  gap: .75rem;
  margin-right: .75rem;
}
.hm-article .icons a {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f7fa;
  color: #000;
}
.hm-article .icons a:hover { background: var(--hm-primary); color: #fff; }
.hm-article .badge { margin-right: .25rem; }

/* ---------- Contact ---------- */
.hm-contact-info {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}
.hm-contact-info li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--hm-border);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hm-contact-info li i { color: var(--hm-primary); width: 18px; }

.hm-contact-form .form-control {
  border-radius: 999px;
  padding-left: 2.5rem;
}
.hm-contact-form textarea.form-control {
  border-radius: 1rem;
  padding-left: 1rem;
}
.hm-contact-form .input-icon {
  position: relative;
}
.hm-contact-form .input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-muted);
}

/* ---------- Footer with animated wave SVGs (matches original site) ---------- */
.hm-footer-wrap {
  position: relative;
  margin-top: 6rem;
  color: rgba(255, 255, 255, 0.5);
}

.hm-waves {
  width: 100%;
  height: 20px;
  position: absolute;
  overflow: hidden;
  z-index: 10;
  top: -20px;
  left: 0;
  pointer-events: none;
}

.hm-wave {
  width: 200%;
  height: 100%;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 350px 100%;
  transform-origin: 0 100% 0;
  animation-name: hm-wave-move;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.hm-wave-1 {
  background-image: url('../img/bg/wave1.svg');
  animation-delay: -2s;
  animation-duration: 12s;
}
.hm-wave-2 {
  background-image: url('../img/bg/wave2.svg');
  animation-delay: -2s;
  animation-duration: 5s;
}
.hm-wave-3 {
  background-image: url('../img/bg/wave3.svg');
  animation-delay: -1s;
  animation-duration: 3s;
}
@keyframes hm-wave-move {
  0%   { transform: translate(-175px, 0) scale(1, 1); }
  50%  { transform: translate(-87px,  0) scale(1, 0.5); }
  100% { transform: translate(0,      0) scale(1, 1); }
}

.hm-footer {
  padding: 30px 0;
  background: #1466b9;     /* darken($color-primary, 20) */
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-align: center;
}
.hm-footer a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
  transition: color .2s ease;
}
.hm-footer a:hover { color: #fff; }
.hm-footer-social a { margin-left: 12px; }
.hm-totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hm-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: c