/* Vazirmatn + RTL refinements for DevFolio */

:root {
  --default-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--default-font);
}

.navmenu ul {
  padding-right: 0;
}

/* Skill percentage on the visual end (left in RTL) */
.about .progress .skill .val {
  float: left;
}

/* Keep phone numbers readable instead of letting RTL reorder their digits. */
.phone-number {
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
}

/* Stack the profile image and details, while keeping the content balanced. */
.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-profile-image {
  width: min(100%, 260px);
}

.about-profile-image img {
  width: 100%;
  display: block;
}

.about-profile .about-info {
  width: 100%;
  text-align: center;
}

.about-profile .about-info p {
  text-align: center;
}

.about-content .skills-content {
  margin-top: 2.5rem;
}

/* About heading underline starts from the right in RTL */
.about .about-me h4:after {
  left: auto;
  right: 0;
}

/* Resume timeline on the right for RTL */
.resume .resume-item {
  padding: 0 20px 20px 0;
  border-left: 0;
  border-right: 2px solid var(--accent-color);
}

.resume .resume-item::before {
  left: auto;
  right: -9px;
}

.resume .resume-item ul {
  padding-left: 0;
  padding-right: 1.25rem;
}

/* Contact icons spacing in RTL */
.contact .info-item i {
  margin-left: 1rem;
  margin-right: 0;
}

/* Keep scroll-top mirrored for RTL */
.scroll-top {
  left: 15px;
  right: auto;
}

/* Persian typed text: avoid wide Latin letter-spacing */
.hero p span {
  letter-spacing: 0;
}

.typed-cursor {
  margin: 0 0.15rem;
}

.portfolio-info .preview-link,
.portfolio-info .details-link {
  margin: 0 0.25rem;
}

/* Mirror the portfolio action buttons so the zoom icon sits on the visual left. */
.portfolio .portfolio-item .portfolio-info h4,
.portfolio .portfolio-item .portfolio-info p {
  padding-right: 0;
  padding-left: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link {
  right: auto;
  left: 50px;
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: auto;
  left: 14px;
}

/* Mobile nav toggle stays readable in RTL header */
@media (max-width: 1199px) {
  .navmenu .mobile-nav-toggle {
    margin-left: 0;
  }
}
