@font-face {
  font-family: "Zain";
  src: url("/assets/fonts/zain/Zain-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zain";
  src: url("/assets/fonts/zain/Zain-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zain";
  src: url("/assets/fonts/zain/Zain-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zain";
  src: url("/assets/fonts/zain/Zain-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html[lang="ku"],
html[lang="ar"],
[dir="rtl"] {
  font-family: "Zain", "Public Sans", "Roboto", sans-serif;
}

html[lang="ku"] body,
html[lang="ar"] body,
[dir="rtl"],
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
  font-family: "Zain", "Public Sans", "Roboto", sans-serif;
}

[dir="rtl"] .navmenu ul,
[dir="rtl"] .social-links,
[dir="rtl"] .d-flex {
  direction: rtl;
}

.language-switch {
  position: relative;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-width: 104px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 0;
  background-color: rgba(255, 255, 255, .04);
  color: var(--nav-color, #fff);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  outline: 0;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
  list-style: none;
  user-select: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "\F282";
  font-family: bootstrap-icons;
  font-size: 12px;
  line-height: 1;
  transition: transform .2s ease;
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu summary:hover,
.language-menu summary:focus {
  border-color: var(--accent-color, #18d26e);
  background-color: rgba(255, 255, 255, .08);
  color: var(--accent-color, #18d26e);
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 148px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  background: rgba(17, 24, 32, .98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
  z-index: 10020;
}

.language-options a,
.navmenu .language-options a,
.navmenu .language-options a:focus {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.language-options a:hover,
.language-options a.active,
.navmenu .language-options a:hover,
.navmenu .language-options a.active {
  background: var(--accent-color, #18d26e);
  color: #06110d;
}

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

[dir="rtl"] .language-options a,
[dir="rtl"] .navmenu .language-options a {
  justify-content: flex-end;
  text-align: right;
}

html[dir="rtl"] .hero .container {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

html[dir="rtl"] .hero p {
  direction: rtl;
}

html[dir="rtl"] .hero .social-links {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 20px;
}

html[dir="rtl"] .hero .social-links a {
  margin-right: 0;
}

body {
  --accent-color: #00bc7d;
}

.header {
  background: linear-gradient(180deg, rgba(8, 12, 16, .72), rgba(8, 12, 16, .12));
  backdrop-filter: blur(10px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 8, 11, .76), rgba(4, 8, 11, .18) 44%, rgba(4, 8, 11, .58)),
    radial-gradient(circle at 75% 35%, rgba(0, 188, 125, .16), transparent 34%);
  pointer-events: none;
}

.hero .container {
  max-width: 1180px;
}

.hero h2 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .94;
  letter-spacing: 0;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.hero p {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 0 0;
  font-size: clamp(22px, 2.4vw, 34px);
}

.hero p span {
  border-bottom-width: 3px;
}

.hero .social-links {
  margin-top: 28px;
}

.hero .social-links a {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.portfolio .portfolio-content {
  border-radius: 8px;
  overflow: hidden;
  background: #111820;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}

.portfolio .portfolio-content img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.08);
  transition: transform .45s ease, filter .45s ease;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.12);
}

.portfolio .portfolio-info {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
}

.portfolio .portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
}

.portfolio .portfolio-filters li {
  margin: 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: #07110e;
  border-color: var(--accent-color);
  background: var(--accent-color);
  transform: translateY(-1px);
}

[dir="rtl"] .portfolio .portfolio-filters {
  direction: rtl;
}

.contact .info-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)),
    rgba(16, 24, 32, .72);
  min-height: 148px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.contact .info-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 45%);
  background:
    linear-gradient(135deg, rgba(0, 188, 125, .12), rgba(255, 255, 255, .02)),
    rgba(16, 24, 32, .82);
}

.contact .info-item p {
  word-break: break-word;
}

.page-title {
  background: linear-gradient(180deg, rgba(11, 17, 23, .96), rgba(16, 25, 34, 1));
}

.section-title .description-title,
.resume .resume-title,
.about .content h2 {
  color: var(--accent-color);
}

@media (max-width: 1199px) {
  .header .logo h1 {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-active .navmenu > ul {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 70px 18px auto 18px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 12px 0 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
    background: rgba(18, 27, 35, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    opacity: 1;
    visibility: visible;
    z-index: 10000;
  }

  .navmenu > ul > li {
    display: block;
    width: 100%;
    padding: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    color: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-weight: 800;
  }

  .navmenu a.active,
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }

  html[dir="rtl"] .navmenu a,
  html[dir="rtl"] .navmenu a:focus {
    justify-content: flex-end;
    text-align: right;
  }

  .navmenu li.language-switch {
    padding: 12px 18px 4px;
  }

  .language-menu summary {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: space-between;
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
  }

  .language-options {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(8, 13, 18, .72);
  }

  .navmenu .language-options a,
  .navmenu .language-options a:focus {
    min-height: 38px;
    padding: 8px 12px;
    border-bottom: 0;
  }

  .hero {
    min-height: 92vh;
    padding: 110px 0 60px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 8, 11, .62), rgba(4, 8, 11, .25) 42%, rgba(4, 8, 11, .82)),
      radial-gradient(circle at 50% 25%, rgba(0, 188, 125, .14), transparent 42%);
  }

  .hero .container,
  html[dir="rtl"] .hero .container {
    align-items: center;
    text-align: center;
  }

  .hero h2 {
    font-size: clamp(42px, 15vw, 72px);
  }

  .hero .social-links,
  html[dir="rtl"] .hero .social-links {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero .social-links a {
    margin: 0;
  }
}

@media (max-width: 575px) {
  .hero {
    min-height: 88vh;
  }

  .hero img {
    object-position: 58% center;
  }

  .hero h2 {
    max-width: 92vw;
    font-size: clamp(36px, 13vw, 54px);
    line-height: 1.04;
  }

  .hero p {
    max-width: 92vw;
    font-size: 22px;
    line-height: 1.3;
  }

  .hero .social-links a {
    width: 42px;
    height: 42px;
  }

  .portfolio .portfolio-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .portfolio .portfolio-filters li {
    flex: 0 0 auto;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .portfolio .portfolio-content img {
    aspect-ratio: 16 / 12;
  }

  .contact .info-item {
    min-height: auto;
  }
}
