/* SnapFolio local overrides — bilingual RTL/LTR + Django contact form */

:root {
  --default-font: "Shabnam", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Shabnam", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-font: "Shabnam", system-ui, -apple-system, "Segoe UI", sans-serif;
  --typed-color: #ffc14d;
}

body {
  font-family: var(--default-font);
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .header {
  left: auto;
  right: 0;
}

@media (min-width: 1200px) {
  [dir="rtl"] .header ~ main,
  [dir="rtl"] .header ~ #footer {
    margin-left: 0;
    margin-right: 330px;
  }
}

@media (max-width: 1199px) {
  [dir="rtl"] .header {
    right: -100%;
    left: auto;
  }

  [dir="rtl"] .header.header-show {
    right: 0;
    left: auto;
  }

  [dir="rtl"] .header .header-toggle {
    right: auto;
    left: 15px;
  }
}

[dir="rtl"] .navmenu a .navicon,
[dir="rtl"] .navmenu a:focus .navicon {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .hero .hero-text h1 .accent-text::after {
  left: auto;
  right: 0;
}

.hero .hero-text .lead .typed,
.hero .hero-text .lead .typed-cursor {
  color: var(--typed-color);
}

.hero .hero-text .lead .typed {
  font-weight: 700;
  border-bottom: 2px solid var(--typed-color);
  padding-bottom: 2px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--typed-color) 42%, transparent);
}

.section-title {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  text-align: start;
  padding-bottom: 2.35rem;
}

.section-title::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  background: var(--typed-color);
  border-radius: 1px;
  box-shadow:
    0 16px 0 var(--accent-color),
    0 32px 0 var(--accent-color),
    0 48px 0 color-mix(in srgb, var(--accent-color) 55%, transparent),
    0 64px 0 color-mix(in srgb, var(--accent-color) 28%, transparent);
}

.section-title::after {
  content: attr(data-kicker);
  grid-column: 2;
  grid-row: 1;
  color: var(--typed-color);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: lowercase;
}

.section-title h2 {
  grid-column: 2;
  grid-row: 2;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--heading-color);
}

.section-title h2::before,
.section-title h2::after {
  content: none;
  display: none;
}

.section-title p {
  grid-column: 2;
  grid-row: 3;
  max-width: 34rem;
  margin: 0.15rem 0 0;
  color: color-mix(in srgb, var(--default-color) 78%, transparent);
  text-align: start;
  text-justify: auto;
}

.tag-confidential {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.35rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #e8c98a;
  color: #07141f;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e8c98a 45%, var(--accent-color, #3eb89f));
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.section-title .resume-actions {
  grid-column: 2;
  grid-row: 4;
  justify-content: flex-start;
}


.about .about-content .section-header {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0.45rem;
}

.about .about-content .section-header::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 8px;
  height: 8px;
  margin-top: 0.2rem;
  background: var(--typed-color);
  border-radius: 1px;
  box-shadow:
    0 16px 0 var(--accent-color),
    0 32px 0 var(--accent-color),
    0 48px 0 color-mix(in srgb, var(--accent-color) 55%, transparent),
    0 64px 0 color-mix(in srgb, var(--accent-color) 28%, transparent);
}

.about .about-content .section-header .badge-text {
  grid-column: 2;
  width: max-content;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--typed-color);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.about .about-content .section-header h2 {
  grid-column: 2;
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lang-switch {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.lang-switch form {
  flex: 1;
  margin: 0;
}

.lang-switch button {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--default-color);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--nav-font);
  cursor: pointer;
  transition: 0.2s;
}

.lang-switch button:hover,
.lang-switch button.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.form-alert {
  display: none;
  margin-bottom: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.form-alert.is-visible {
  display: block;
}

.form-alert.is-success {
  background: color-mix(in srgb, #22c55e, transparent 80%);
  color: #bbf7d0;
}

.form-alert.is-error {
  background: color-mix(in srgb, #ef4444, transparent 80%);
  color: #fecaca;
}

.resume-item .resume-body {
  margin: 0;
  line-height: 1.8;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  width: 100%;
}

.header-identity img,
.header-identity .header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-identity .header-avatar {
  display: grid;
  place-items: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 700;
}

.header-identity strong {
  display: block;
  font-size: 15px;
  color: var(--heading-color);
  line-height: 1.3;
}

.header-identity span {
  display: block;
  font-size: 12px;
  color: var(--nav-color);
}

.portfolio-empty {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  padding: 2rem 0;
}

.portfolio-details .portfolio-info h3,
.portfolio-details .portfolio-info li,
.portfolio-details .portfolio-description h2,
.portfolio-details .portfolio-description p:not(:has(.btn)),
.portfolio-details .portfolio-description .feature-item h4,
.portfolio-details .portfolio-description .feature-item p {
  text-align: justify;
  text-justify: inter-word;
}

.portfolio-details .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  margin: 8px 8px 0 0;
}

.portfolio-details .btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.portfolio-details .btn-outline {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
  color: var(--default-color);
}

.profile-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(145deg, var(--surface-color), var(--background-color));
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
}

.hero .hero-visual .profile-container .profile-image.profile-fallback {
  object-fit: unset;
  border-radius: 50% 50% 50% 8px;
}

.profile-fallback.square {
  min-height: 240px;
  border-radius: 12px;
  font-size: 5rem;
}

.contact .errorlist {
  color: #fecaca;
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
  font-size: 13px;
}

/* Content breathing room + justified body copy */
.main .container {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-top: clamp(4rem, 8vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.about .description p,
.about .about-content p,
.resume-side p,
.resume-item p,
.resume-item li,
.resume-section p,
.services p,
.service-card p,
.service-summary p,
.contact .content p,
.contact-form p,
.skills .skills-category p,
.portfolio .portfolio-info p,
.hero .hero-text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Skills: clearer category cards + spacing */
.skills .row {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

.skills .skills-category {
  height: 100%;
  margin-bottom: 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 86%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--background-color), #ffffff 3%);
}

.skills .skills-category h3 {
  margin-bottom: 1.25rem;
}

.skills .skills-category h3:after {
  left: auto;
  right: auto;
  inset-inline-start: 0;
}

.skills .skill-item {
  margin-bottom: 1.15rem;
}

.skills .skill-item .progress .progress-bar {
  transition-duration: 0.55s;
  transition-timing-function: ease-out;
}

.stats .stats-item .stat-figure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  margin-bottom: 10px;
  line-height: 1;
}

.stats .stats-item .stat-figure span {
  display: inline;
  width: auto;
  margin-bottom: 0;
}

.stats .stats-item .stat-figure .stat-plus {
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color);
  margin-inline-start: 0;
}

/* Resume page */
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.resume-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.resume-actions .btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
}

.resume-actions .btn-outline {
  background: transparent;
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
}

.resume-page .resume-main {
  padding-inline-start: clamp(0.5rem, 2vw, 2rem);
}

.resume .resume-section .resume-item {
  padding-left: 0;
  padding-inline-start: 1.5rem;
  border-left: 0;
  border-inline-start: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.resume .resume-section .resume-item:before {
  left: auto;
  inset-inline-start: -9px;
}

.resume .resume-section .resume-item .company i {
  margin-right: 0;
  margin-inline-end: 0.5rem;
}

.resume-item ul {
  text-align: justify;
  padding-inline-start: 1.2rem;
}

.cv-paper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.resume .cv-paper section {
  background: transparent;
  color: inherit;
  padding: 0;
  overflow: visible;
}

.cv-side {
  background: #134e4a;
  color: #f0fdfa;
  padding: 32px 22px 36px;
}

.cv-photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 16px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #99f6e4, transparent 70%);
}

.cv-photo img,
.cv-photo span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 4px solid #134e4a;
  background: #0f766e;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.cv-identity { text-align: center; margin-bottom: 22px; }
.cv-identity h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.cv-identity p { margin: 6px 0 0; color: #99f6e4; font-size: 0.92rem; line-height: 1.7; }

.cv-side section { margin-bottom: 22px; }
.cv-side h4 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #99f6e4;
  font-size: 0.95rem;
}

.cv-contact, .cv-bars { list-style: none; margin: 0; padding: 0; }
.cv-contact li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: normal;
}
.cv-contact a,
.cv-contact .ltr {
  color: #f0fdfa;
  direction: ltr;
  unicode-bidi: isolate;
}
.cv-contact span {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.cv-bars li { margin-bottom: 12px; }
.cv-bars div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.cv-bars b { color: #99f6e4; font-weight: 500; }
.cv-bars i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #99f6e4;
}

.cv-lang { margin: 0; font-size: 0.92rem; }

.cv-main {
  padding: 32px 32px 36px;
  background: #ffffff;
  color: #1f2937;
}
.cv-block { margin-bottom: 28px; }
.cv-block > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 1.2rem;
}
.cv-block > h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #ccfbf1;
}
.cv-about, .cv-main li, .cv-cards p {
  text-align: justify;
  color: #374151;
  line-height: 1.9;
}
.cv-focus {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #ccfbf1;
  border-inline-start: 3px solid #0f766e;
  color: #134e4a;
}
.cv-timeline { position: relative; padding-inline-start: 18px; }
.cv-timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 4px;
  width: 2px;
  background: #ccfbf1;
}
.cv-timeline article { position: relative; margin-bottom: 18px; }
.cv-timeline article::before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0f766e;
}
.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cv-head h4 { margin: 0; color: #111827; font-size: 1.02rem; }
.cv-head a { color: inherit; }
.cv-head span {
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 99px;
  padding: 1px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.cv-org { margin: 2px 0 4px; color: #6b7280; font-size: 0.9rem; }
.cv-timeline ul { margin: 4px 0 0; padding: 0; list-style: none; }
.cv-timeline li {
  position: relative;
  padding-inline-start: 14px;
  margin-bottom: 2px;
}
.cv-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f766e;
}
.cv-cards, .cv-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.cv-cards article h4, .cv-groups h4 { font-size: 0.95rem; }
.cv-groups h4 { margin: 0 0 4px; color: #0f766e; }
.cv-groups p { margin: 0; color: #374151; line-height: 1.7; }

@media (max-width: 900px) {
  .cv-paper, .cv-cards, .cv-groups { grid-template-columns: 1fr; }
  .cv-main { padding: 24px 18px 28px; }
}

.resume-intro {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.resume-intro-photo img {
  width: 148px;
  height: 176px;
  object-fit: cover;
  border-radius: 14px;
}

.resume-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-color);
  font-size: 0.92rem;
  font-weight: 700;
}

.resume-intro-copy h3 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.resume-contact-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resume-contact-row a {
  color: var(--accent-color);
}

.resume-skill-groups,
.resume-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.resume-skill-group h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.resume-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.resume-chips span {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  font-size: 0.84rem;
}

.resume-cert-grid .resume-item {
  margin-bottom: 0;
}

.resume-item h4 a {
  color: inherit;
}

@media (max-width: 767px) {
  .resume-intro,
  .resume-skill-groups,
  .resume-cert-grid {
    grid-template-columns: 1fr;
  }
}

/* Services: info-card shell (rotating border, title fill) */
.services .info-card-grid {
  --info-border-bg: var(--background-color);
  --info-card-bg: var(--surface-color);
  --info-text: var(--default-color);
}

.services .info-card-grid > [class*="col-"] {
  display: flex;
}

.services a.info-card {
  --rotation: 0deg;
  --spot-x: 50%;
  --info-accent: var(--accent-color);
  --info-hover-ink: var(--contrast-color);
  width: 100%;
  height: 100%;
  min-height: 378px;
  margin: 0;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--info-text);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  border: 3px solid transparent;
  border-radius: 1em;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--info-card-bg), var(--info-card-bg)),
    conic-gradient(from var(--rotation), var(--info-accent) 0deg, var(--info-accent) 90deg, var(--info-border-bg) 90deg, var(--info-border-bg) 360deg);
  font-family: inherit;
  transition: box-shadow 0.3s;
}

.services a.info-card:hover,
.services a.info-card:focus-visible {
  color: var(--info-text);
}

.services a.info-card:focus-visible {
  outline: 2px solid var(--info-accent);
  outline-offset: 4px;
}

.services .info-card__inner {
  width: 100%;
  min-height: 344px;
  border-radius: 1em;
  background-color: var(--info-card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 0 8px;
}

.services .info-card__media {
  position: relative;
  width: 100%;
  flex: 0 0 168px;
  height: 168px;
  min-height: 168px;
  max-height: 168px;
  overflow: hidden;
}

.services .info-card__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(145deg, #1a3c48, #243028 70%);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.project-fallback {
  min-height: 220px;
  border-radius: 1rem;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(155deg, #1a3c48, #101820 60%, #3a3226);
}

.services .info-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services .info-card__body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  padding: 14px 16px 8px;
}

.services .info-card__title {
  position: relative;
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
}

.services .info-card__title-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2px 4px;
  color: var(--info-text);
  transition: color 0.3s ease;
}

.services .info-card__title-fill {
  position: absolute;
  left: -4px;
  right: -4px;
  top: -4px;
  bottom: -4px;
  z-index: 0;
  background:
    radial-gradient(
      9rem 2.4rem at var(--spot-x, 50%) 50%,
      color-mix(in srgb, white 62%, var(--info-accent)),
      transparent 72%
    ),
    linear-gradient(
      100deg,
      var(--info-accent) 0%,
      color-mix(in srgb, var(--info-accent) 72%, white) 48%,
      var(--info-accent) 100%
    );
  box-shadow: inset 0 0 0 1px transparent;
  clip-path: inset(50% 42% 50% 42% round 999px);
  opacity: 0;
  transition:
    clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    opacity 0.25s ease;
}

.services .info-card__title-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-180%);
  pointer-events: none;
}

.services a.info-card:hover .info-card__title-text,
.services a.info-card:focus-visible .info-card__title-text {
  color: var(--info-hover-ink);
}

.services a.info-card:hover .info-card__title-fill,
.services a.info-card:focus-visible .info-card__title-fill {
  opacity: 1;
  clip-path: inset(0 round 0.4em);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 55%, transparent),
    inset 0 0 16px color-mix(in srgb, white 28%, transparent);
}

.services a.info-card:hover .info-card__title-fill::after,
.services a.info-card:focus-visible .info-card__title-fill::after {
  animation: info-title-sheen 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes info-title-sheen {
  to {
    transform: translateX(340%);
  }
}

.services .info-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--info-text);
  text-align: justify;
  text-justify: inter-word;
}

@media (prefers-reduced-motion: reduce) {
  .services .info-card__title-text,
  .services .info-card__title-fill,
  .services a.info-card {
    transition: none;
  }

  .services a.info-card:hover .info-card__title-fill::after,
  .services a.info-card:focus-visible .info-card__title-fill::after {
    animation: none;
  }
}

@media print {
  .header,
  .header-toggle,
  .page-title,
  .no-print,
  #footer,
  .footer {
    display: none !important;
  }

  .header ~ main,
  [dir="rtl"] .header ~ main {
    margin: 0 !important;
  }

  body,
  .main,
  .resume.section {
    background: #fff !important;
    color: #111 !important;
  }

  .resume.section {
    padding-top: 0;
  }
}

.project-gallery__frame {
  position: relative;
}

.project-gallery__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0c1218;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: color-mix(in srgb, #07141f, transparent 18%);
  color: #fff;
  font-size: 1.15rem;
}

.project-gallery__nav--prev { inset-inline-start: 0.7rem; }
.project-gallery__nav--next { inset-inline-end: 0.7rem; }

[dir="rtl"] .project-gallery__nav i {
  transform: scaleX(-1);
}

.project-gallery__caption {
  margin: 0.7rem 0 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 0.92rem;
}

.project-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.project-gallery__thumb {
  width: 7.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  overflow: hidden;
  background: transparent;
  opacity: 0.72;
}

.project-gallery__thumb.is-on {
  border-color: var(--accent-color, #3eb89f);
  opacity: 1;
}

.project-gallery__thumb img {
  display: block;
  width: 100%;
  height: 4.4rem;
  object-fit: cover;
}

.project-writeup {
  margin-top: 1.35rem;
}

.project-writeup h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.portfolio-details .portfolio-description .project-writeup p {
  margin-bottom: 0.7rem;
}
