:root {
  --bg: #f7f4ef;
  --bg-soft: #fffaf2;
  --surface: rgb(255 255 255 / 0.78);
  --surface-strong: #ffffff;
  --text: #151515;
  --muted: #5d6470;
  --line: rgb(20 20 20 / 0.1);
  --accent: #0f8b8d;
  --accent-2: #f25f5c;
  --accent-3: #ffcb77;
  --shadow: 0 24px 70px rgb(22 28 45 / 0.14);
  --shadow-soft: 0 14px 36px rgb(22 28 45 / 0.11);
  --radius: 8px;
  --max-width: 1120px;
  --dark-color: #15181e;
  --dark-icon-color: #fff;
  --light-icon-color: #f7b731;
  --btn-width: 3.25rem;
  --btn-height: 1.65rem;
  --indicator-size: 1.35rem;
  --icon-size: 0.78rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 8% 10%, rgb(15 139 141 / 0.12), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgb(242 95 92 / 0.14), transparent 24rem),
    linear-gradient(135deg, var(--bg) 0%, #eef5f3 48%, var(--bg-soft) 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.45s ease, color 0.45s ease;
}

body::before {
  background-image:
    linear-gradient(rgb(21 21 21 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 21 21 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.8), transparent 72%);
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.42));
  content: "";
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

html.darkmode,
body.darkmode {
  --bg: #101317;
  --bg-soft: #151a20;
  --surface: rgb(24 29 36 / 0.78);
  --surface-strong: #1c222b;
  --text: #f7f4ef;
  --muted: #b6bdc8;
  --line: rgb(255 255 255 / 0.12);
  --shadow: 0 24px 70px rgb(0 0 0 / 0.34);
  --shadow-soft: 0 14px 36px rgb(0 0 0 / 0.28);
}

body.darkmode {
  background:
    radial-gradient(circle at 10% 8%, rgb(15 139 141 / 0.22), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgb(242 95 92 / 0.18), transparent 26rem),
    linear-gradient(135deg, #101317 0%, #171c23 54%, #101317 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
.post,
.skill-card,
.social-icons img {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  margin: 0 auto;
  padding-top: clamp(5.15rem, 7.5vw, 6.25rem);
  width: 100%;
}

.site-nav {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  left: 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.nav-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: clamp(4.55rem, 7vw, 5.45rem);
  padding: 0.82rem 0;
  width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.nav-return {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  transition: color 0.25s ease;
}

.nav-return:hover,
.nav-return:focus-visible {
  color: var(--text);
}

.nav-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.6rem;
}

.nav-logo {
  background: url("https://ik.imagekit.io/samar/Samar_logo_pixel-.png") center / contain no-repeat;
  display: inline-block;
  flex: 0 0 auto;
  height: 1.9rem;
  width: 1.9rem;
}

#name {
  align-items: center;
  background: var(--surface-strong);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--text);
  color: var(--text);
  display: inline-flex;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  font-weight: 700;
  height: 2.35rem;
  letter-spacing: 0.05em;
  line-height: 1;
  min-width: 2.75rem;
  overflow: hidden;
  padding: 0 0.75rem;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}

/* dashed inner frame, matching the reference "pixel message box" look */
#name::after {
  border: 1px dashed var(--line);
  content: "";
  inset: 4px;
  pointer-events: none;
  position: absolute;
}

.container {
  flex: 1;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: clamp(1.2rem, 3.5vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem;
  width: 100%;
}

.hero-section {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  min-height: min(720px, calc(100vh - 7rem));
  place-content: center;
}

.content-wrapper {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 4.8rem);
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
}

.profile {
  position: relative;
}

.profile::before,
.profile::after {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  content: "";
  position: absolute;
}

.profile::before {
  background: linear-gradient(135deg, rgb(15 139 141 / 0.26), rgb(242 95 92 / 0.18));
  inset: 12% -5% -5% 12%;
  z-index: -1;
}

.profile::after {
  inset: -4% 9% 11% -4%;
  z-index: -1;
}

.profile img {
  aspect-ratio: 4 / 5;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  margin: 0;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: min(100%, 430px);
}

.profile-ctas {
  align-items: center;
  bottom: 1.15rem;
  display: flex;
  gap: 0.65rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(-1.5deg);
  transition: transform 0.35s ease;
  width: min(calc(100% - 2rem), 360px);
  z-index: 2;
}

.profile-cta {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgb(255 255 255 / 0.84);
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgb(22 28 45 / 0.18);
  color: #151515;
  display: inline-flex;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 850;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.profile-cta-primary {
  background: #151515;
  border-color: #151515;
  color: #fffaf2;
}

.profile-cta:hover,
.profile-cta:focus-visible {
  box-shadow: 0 20px 42px rgb(22 28 45 / 0.24);
  transform: translateY(-3px);
}

.profile:hover img {
  box-shadow: 0 30px 80px rgb(22 28 45 / 0.18);
  transform: rotate(0deg) translateY(-4px);
}

.profile:hover .profile-ctas {
  transform: translateX(-50%) translateY(-4px) rotate(0deg);
}

.intro {
  max-width: 620px;
  padding: 0;
  text-align: left;
}

.intro h1 {
  color: var(--text);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0 0 1.6rem;
  text-wrap: balance;
}

.intro h1 span {
  display: block;
}

.intro h1 .name-line {
  white-space: nowrap;
}

.intro h1::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.42rem;
  margin-top: 1.25rem;
  width: min(10rem, 48%);
}

.intro-detail {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0.5rem 0;
}

.intro-detail b {
  color: var(--text);
  font-weight: 850;
}

.social-icons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
  margin: 0;
}

.social-icons a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgb(22 28 45 / 0.08);
  display: inline-flex;
  height: 3.25rem;
  justify-content: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: 3.25rem;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  background: var(--surface-strong);
  border-color: rgb(15 139 141 / 0.38);
  box-shadow: 0 18px 36px rgb(22 28 45 / 0.14);
  transform: translateY(-4px);
}

.social-icon {
  display: block;
  height: 1.55rem;
  object-fit: contain;
  transition: transform 0.25s ease;
  width: 1.55rem;
}

.social-icons a:hover .social-icon {
  transform: scale(1.08);
}

.skills-section,
.projects-section {
  margin: clamp(1rem, 3vw, 2.2rem) auto 0;
  width: 100%;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.15rem;
}

.section-heading h2,
.contact-section h2 {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.section-heading h2::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin: 0.72rem 0 0;
  width: 72px;
}

.skills-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 721px) {
  .skills-section .section-heading {
    margin-bottom: -0.45rem;
  }

  .skills-section .section-heading h2::after {
    margin-top: 0.45rem;
  }

  .skills-section .skills-grid {
    margin-top: -2.2rem;
  }
}

@media (min-width: 981px) {
  .social-icons {
    transform: translateY(-1.6rem);
  }
}

.skill-card {
  align-items: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.56)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(22 28 45 / 0.09);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  min-height: 220px;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.skill-card::before {
  background: linear-gradient(135deg, var(--skill-color), transparent 58%);
  content: "";
  inset: 0;
  opacity: 0.1;
  position: absolute;
  transition: opacity 0.28s ease;
}

.skill-card::after {
  border: 1px solid color-mix(in srgb, var(--skill-color), transparent 58%);
  border-radius: calc(var(--radius) - 2px);
  content: "";
  inset: 0.55rem;
  pointer-events: none;
  position: absolute;
}

.skill-card:hover {
  border-color: color-mix(in srgb, var(--skill-color), transparent 45%);
  box-shadow: 0 26px 58px rgb(22 28 45 / 0.16);
  transform: translateY(-8px) rotate(var(--card-tilt));
}

.skill-card:hover::before {
  opacity: 0.18;
}

.card-rank,
.card-suit {
  color: var(--skill-color);
  font-weight: 900;
  line-height: 1;
  position: absolute;
  z-index: 1;
}

.card-rank {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  left: 1rem;
  top: 0.9rem;
}

.card-suit {
  bottom: 0.9rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  right: 1rem;
}

.skill-logo {
  align-self: center;
  color: var(--skill-color);
  filter: drop-shadow(0 16px 22px color-mix(in srgb, var(--skill-color), transparent 72%));
  font-size: clamp(3.8rem, 7vw, 5.8rem);
  position: relative;
  transition: transform 0.28s ease, filter 0.28s ease;
  z-index: 1;
}

.skill-card:hover .skill-logo {
  filter: drop-shadow(0 18px 25px color-mix(in srgb, var(--skill-color), transparent 62%));
  transform: scale(1.08) rotate(calc(var(--card-tilt) * -1));
}

.skill-card h3 {
  color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.skill-card-python {
  --card-tilt: -1.5deg;
  --skill-color: #3776ab;
}

.skill-card-js {
  --card-tilt: 1.5deg;
  --skill-color: #d6a600;
}

.skill-card-html {
  --card-tilt: -1deg;
  --skill-color: #e34f26;
}

.skill-card-sql {
  --card-tilt: 1deg;
  --skill-color: #0f8b8d;
}

.skill-card-css {
  --card-tilt: -1.5deg;
  --skill-color: #264de4;
}

.skill-card-fastapi {
  --card-tilt: 1.5deg;
  --skill-color: #009688;
}

.skill-card-git {
  --card-tilt: -1deg;
  --skill-color: #f05033;
}

.posts {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  width: 100%;
}

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(22 28 45 / 0.09);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  width: 100%;
}

.post::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0;
  position: absolute;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.post:hover,
.post:focus-within {
  background: var(--surface-strong);
  border-color: rgb(15 139 141 / 0.35);
  box-shadow: 0 26px 58px rgb(22 28 45 / 0.16);
  transform: translateY(-8px);
}

.post:hover::before,
.post:focus-within::before {
  opacity: 1;
}

.project-link {
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.post img {
  aspect-ratio: 16 / 10;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  width: 100%;
}

.post:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.post-content {
  align-content: start;
  display: grid;
  gap: 0.42rem;
  min-height: 8.2rem;
  padding: 1rem;
}

.post-content h2 {
  color: var(--text);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 850;
  line-height: 1.18;
  margin: 0;
  overflow-wrap: anywhere;
}

.post-content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.project-detail-page {
  padding-top: clamp(1.5rem, 4vw, 3.4rem);
}

.case-study {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.case-hero {
  align-items: center;
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
}

.case-hero-copy {
  min-width: 0;
}

.back-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 750;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  transform: translateX(-3px);
}

.case-kicker {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.case-hero h1 {
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

.case-summary {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin: 1.1rem 0 0;
  max-width: 58rem;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.case-action {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgb(22 28 45 / 0.08);
  color: var(--text);
  display: inline-flex;
  font-weight: 850;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.case-action-primary {
  background: var(--text);
  border-color: transparent;
  color: var(--bg-soft);
}

.case-action:hover,
.case-action:focus-visible {
  background: var(--surface-strong);
  box-shadow: 0 18px 36px rgb(22 28 45 / 0.14);
  color: var(--text);
  transform: translateY(-3px);
}

.case-action-primary:hover,
.case-action-primary:focus-visible {
  background: var(--accent);
  color: #fff;
}

.case-preview {
  background:
    linear-gradient(135deg, rgb(15 139 141 / 0.16), rgb(242 95 92 / 0.12)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.1rem);
  transform: rotate(1deg);
}

.case-preview img {
  aspect-ratio: 16 / 11;
  border-radius: calc(var(--radius) - 2px);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.case-overview,
.case-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.case-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-stat,
.case-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(22 28 45 / 0.09);
}

.case-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.case-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-stat strong {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.2;
}

.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-section {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.case-section-wide {
  margin: 0;
}

.case-section h2 {
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

.case-section p,
.case-list {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
  margin: 0;
}

.case-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.15rem;
}

.case-list-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  list-style: none;
  margin: 0;
}

.tag {
  align-items: center;
  background: rgb(15 139 141 / 0.1);
  border: 1px solid rgb(15 139 141 / 0.18);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
}

.hire-page {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  padding-top: clamp(1.5rem, 4vw, 3.4rem);
}

.hire-hero {
  max-width: 760px;
}

.hire-hero h1 {
  color: var(--text);
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

.hire-options {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hire-card {
  align-items: center;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.58)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(22 28 45 / 0.09);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  min-height: 285px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  position: relative;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hire-card::before {
  background: linear-gradient(135deg, var(--hire-color), transparent 62%);
  content: "";
  inset: 0;
  opacity: 0.11;
  pointer-events: none;
  position: absolute;
}

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

.hire-card:hover,
.hire-card:focus-within {
  border-color: color-mix(in srgb, var(--hire-color), transparent 45%);
  box-shadow: 0 26px 58px rgb(22 28 45 / 0.16);
  transform: translateY(-8px);
}

.hire-icon {
  align-items: center;
  background: color-mix(in srgb, var(--hire-color), transparent 86%);
  border: 1px solid color-mix(in srgb, var(--hire-color), transparent 72%);
  border-radius: var(--radius);
  color: var(--hire-color);
  display: inline-flex;
  font-size: 1.85rem;
  height: 3.75rem;
  justify-content: center;
  width: 3.75rem;
}

.hire-card h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.hire-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.hire-card a {
  align-items: center;
  align-self: end;
  background: var(--text);
  border-radius: var(--radius);
  color: var(--bg-soft);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hire-card a:hover,
.hire-card a:focus-visible {
  background: var(--hire-color);
  color: #fff;
  transform: translateY(-3px);
}

.hire-card-job {
  --hire-color: #0f8b8d;
}

.hire-card-freelance {
  --hire-color: #f25f5c;
}

.hire-card-sponser {
  --hire-color: #b8860b;
}

.contact-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgb(15 139 141 / 0.12), rgb(242 95 92 / 0.1)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  text-align: left;
}

.contact-section p {
  margin: 0;
}

.contact-section a {
  align-items: center;
  background: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--bg-soft);
  display: inline-flex;
  font-weight: 750;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.contact-section a:hover,
.contact-section a:focus-visible {
  background: #0f8b8d;
  box-shadow: 0 18px 36px rgb(15 139 141 / 0.25);
  color: #fff;
  transform: translateY(-3px);
}

.btn {
  align-items: center;
  appearance: none;
  background: rgb(255 255 255 / 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 0.7), 0 12px 24px rgb(22 28 45 / 0.12);
  cursor: pointer;
  display: flex;
  height: var(--btn-height);
  margin: 0;
  padding: 0;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  width: var(--btn-width);
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 14px 28px rgb(22 28 45 / 0.18);
  transform: translateY(-1px);
}

.btn__indicator {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 7px 16px rgb(22 28 45 / 0.22);
  height: var(--indicator-size);
  left: 0.16rem;
  position: absolute;
  transition: transform 0.3s ease, background 0.3s ease;
  width: var(--indicator-size);
}

.btn__icon-container {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.btn__icon {
  color: var(--light-icon-color);
  font-size: var(--icon-size);
}

.btn__icon.animated {
  animation: spin 0.5s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.darkmode .btn {
  background: rgb(255 255 255 / 0.09);
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 0.08), 0 12px 24px rgb(0 0 0 / 0.2);
}

.darkmode .btn__indicator {
  background: var(--dark-color);
  transform: translateX(1.55rem);
}

.darkmode .btn__icon {
  color: var(--dark-icon-color);
}

.darkmode .skill-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)),
    var(--surface);
}

.darkmode .tag {
  background: rgb(15 139 141 / 0.18);
  border-color: rgb(15 139 141 / 0.28);
}

.darkmode .hire-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)),
    var(--surface);
}

footer.container {
  padding-bottom: 1rem;
}

@media (max-width: 980px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .profile {
    justify-self: center;
    max-width: 380px;
    width: min(84vw, 380px);
  }

  .intro {
    justify-self: center;
    max-width: 680px;
    text-align: center;
  }

  .intro h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .case-hero,
  .case-grid,
  .hire-options {
    grid-template-columns: 1fr;
  }

  .case-preview {
    order: -1;
    transform: rotate(0deg);
  }

  .skills-grid,
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 0 0.75rem;
  }

  .site-shell {
    padding-top: 4.9rem;
  }

  .nav-container {
    min-height: 4.4rem;
    padding: 0.72rem 0;
  }

  #name {
    box-shadow: 2px 2px 0 var(--text);
    height: 2.05rem;
    min-width: 2.25rem;
    padding: 0 0.6rem;
  }

  .nav-logo {
    height: 1.55rem;
    width: 1.55rem;
  }

  .container {
    padding: 1.1rem 0.75rem 2rem;
  }

  .hero-section {
    min-height: auto;
    padding: 1rem 0 0.6rem;
  }

  .content-wrapper {
    gap: 1.45rem;
  }

  .profile img {
    max-height: 390px;
  }

  .intro h1 {
    margin-bottom: 1.05rem;
  }

  .intro-detail {
    font-size: 1rem;
    line-height: 1.48;
    margin: 0.28rem auto;
    max-width: 31rem;
  }

  .social-icons {
    gap: 0.65rem;
  }

  .social-icons a {
    height: 3rem;
    width: 3rem;
  }

  .skills-section,
  .projects-section {
    margin-top: 1.25rem;
  }

  .section-heading {
    margin-bottom: 0.9rem;
  }

  .skills-grid,
  .posts {
    gap: 0.8rem;
  }

  .skills-grid {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    width: min(100%, 560px);
  }

  .skill-card {
    min-height: 164px;
    padding: 0.85rem;
  }

  .skill-logo {
    font-size: clamp(3.25rem, 15vw, 4.6rem);
  }

  .post-content {
    min-height: 7.1rem;
    padding: 0.78rem;
  }

  .post-content h2 {
    font-size: clamp(0.92rem, 4vw, 1.05rem);
  }

  .post-content p {
    font-size: clamp(0.78rem, 3.5vw, 0.88rem);
    line-height: 1.34;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-section a {
    width: 100%;
  }

  .nav-return {
    display: none;
  }

  .case-overview,
  .case-list-columns {
    grid-template-columns: 1fr;
  }

  .case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-action {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-content {
    min-height: auto;
  }

  .contact-section h2 {
    font-size: 1.55rem;
  }

  .contact-section a {
    font-size: 0.92rem;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}