@font-face{
    font-family:persian_1;
    src:url('../font/persian_1.ttf');
}
body{
    direction:rtl;
    font-family:persian_1;
    margin: 0;
    padding-top: 70px;
}
nav {
  background: #eaf3ff;
  color:blue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  /* position: relative; */
  z-index: 1000;
  position: fixed;   /* 👈 همیشه بالای صفحه */
  top: 0;            /* از بالای صفحه بچسبه */
  right: 0;
  left: 0;
  z-index: 1000;     /* روی همه چیز بمونه */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* سایه ظریف برای قشنگی */
}
nav{
  padding-left:10px;
  padding-right:10px;
}
nav div img {
    height: 40px;   /* ارتفاع ثابت */
    width: auto;    /* عرض رو متناسب تنظیم می‌کنه */
    display: block;
  }
  
nav .logo {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color:rgb(00,00,255);
}
nav .logo a{
  text-decoration: none;
  color:rgb(00,00,150);
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s;
  position: relative;   /* 👈 اینو اضافه کن */
  padding-bottom: 5px;  /* جا برای خط */
}
nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00bcd4;
  transition: 0.3s;
}
nav ul li a:hover::after {
  width: 100%;
}
nav ul li a:hover {
  color: #00bcd4;
}
#a{
    color:#00bcd4;
    position: relative;
    text-decoration: none;
    padding-bottom: 5px; /* جا برای خط */
}
#a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;     /* همیشه کامل */
  height: 2px;
  background: #00bcd4; /* خط آبی */
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background:rgb(00,00,100);
  margin: 4px 0;
  border-radius: 5px;
  transition: 0.4s;
}
/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #f3f3f3;
  padding: 60px 20px;
  transition: 0.4s;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu ul li {
  margin: 20px 0;
}
.mobile-menu ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
}
.mobile-menu ul li a:hover {
  color: #00bcd4;
}
/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
.about-section {
    padding: 60px 20px;
    background: #f9f9f9;
    min-height: 100vh;
  }
  
  .about-section .container {
    max-width: 1100px;
    margin: auto;
  }
  
  .about-section h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
  }
  
  .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
  }
  
  .about-image {
    flex: 1;
    text-align: center;
  }
  
  .about-image img {
    max-width: 300px !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .about-image img:hover{
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .skills {
    margin-top: 60px;
  }
  
  .skills h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 0;
  }
  
  .skills ul li {
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    font-weight: bold;
    color: #555;
    transition: 0.3s;
  }
  
  .skills ul li:hover {
    background: #00bcd4;
    color: #fff;
    transform: translateY(-5px);
    cursor: pointer;
  }
/* Responsive برای موبایل */
@media (max-width: 768px) {
    .about-content {
      flex-direction: column; /* تصویر بالای متن */
      align-items: center;
      text-align: center;
      gap: 20px;
    }
  
    .about-image {
      order: -1; /* تصویر بالای متن */
    }
  
    .about-image img {
      max-width: 200px; /* اندازه مناسب روی موبایل */
    }
  }

/* Colors */
:root {
  --color-white: #fff;
  --color-blue: #7854f7;
  --color-black: #18191f;
  --color-skyblue: #e7f6fd;
  --bg-color-black: #0b0d17;
  --bg-dark: #20263c;
}

/* Font size */
:root {
  --btn-font: 1rem;
  --font-xlarge: 3.75rem;
  --font-medium: 1.563rem;
  --font-semimedium: 1.125rem;
  --font-regular: 0.875rem;
}
a{
  text-decoration: none;
}
/* Classes */
.ptb-100 {
  padding: 100px 0;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.d-grid {
  display: grid;
  gap: 20px;
}
.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-block;
  width: 186px;
  padding: 13px 0px;
  font-weight: var(--font-weight-light);
  border-radius: var(--border-radius);
  font-size: var(--btn-font);
  box-shadow: var(--box-shadow-main);
  text-align: center;
  transition: all 0.3s ease-in-out;
  text-transform: capitalize;
  border: 0px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}
.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn-black {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-default {
  background: var(--color-white);
  color: var(--color-blue);
}
.btn-default:hover {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
}
.btn-outline:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}
/* Hero section */
.social {
  margin-top: 50px;
}
.social ul li {
  display: inline-block;
  margin-right: 25px;
}

/* Features */
.features {
  width: 100%;
  margin-top: 60px;
}
.features-inner {
  grid-template-columns: repeat(auto-fit, minmax(min(23%, 100%), 1fr));
  border-radius: var(--border-radius);
  padding: 46px 80px;
}
.feature-item {
  justify-content: center;
}
.feature-item .icon {
  height: 65px;
  width: 65px;
  justify-content: center;
  border-radius: 50px;
  margin-right: 10px;
}

.feature-item .icon.color1 {
  background: #f24e1e;
}
.feature-item .icon.color2 {
  background: #19d28b;
}
.feature-item .icon.color3 {
  background: #e74d89;
}
.feature-item .icon.color4 {
  background: #7854f7;
}
.feature-item h3 {
  font-size: var(--font-medium);
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
}
/* Experience */
.progressbar-item {
  padding: 15px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-main);
  transition: all 0.3s ease-in-out;
}
.progressbar-item:hover {
  box-shadow: var(--box-shadow-hover);
}
.progessbar-bg {
  width: 100%;
  height: 9px;
  background: #e4e7f2;
  border-radius: 20px;
}
.progressbar-size {
  height: 9px;
  background: var(--color-blue);
  border-radius: 20px;
}
.experience-inner {
  grid-template-columns: repeat(auto-fit, minmax(min(49%, 100%), 1fr));
}
.progressbar-content {
  margin-bottom: 15px;
}
.progressbar-content h3 {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-regular);
  line-height: 25px;
}
.progressbar-content h4 {
  font-weight: var(--font-weight-regular);
  font-size: var(--font-regular);
  line-height: 22px;
  text-transform: capitalize;
}
/* Footer */
footer {
  background: var(--bg-color-black);
  padding: 100px 0 0;
  text-align: center;
}
.footer-nav {
  margin-top: 60px;
}
.footer-nav ul li {
  display: inline-block;
  margin-right: 25px;
}
.footer-nav ul li a {
  color: var(--color-white);
  font-size: var(--font-regular);
  transition: all 0.3s ease-in;
}
.footer-nav ul li a:hover {
  opacity: 0.5;
}

.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 70px;
}
.footer-bottom p {
  color: var(--color-white);
  font-size: var(--font-regular);
}
.footer-social a {
  width: 37px;
  height: 37px;
  background: var(--bg-dark);
  text-align: center;
  padding: 9px 0;
  display: inline-block;
  border-radius: 50px;
  margin-left: 20px;
}
.footer-social a img {
  width: 19px;
  height: 19px;
  object-fit: cover;
}
/* Modal */
.modal {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-main);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.modal-image {
  height: 400px;
}
.modal .modal-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}
.modal .modal-content {
  padding: 25px 25px;
}
.modal .modal-content h3 {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-semimedium);
  line-height: 30px;
  margin-bottom: 15px;
}
.modal .modal-content .requirments {
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  font-weight: normal;
  font-size: var(--font-regular);
  line-height: 19px;
  margin-bottom: 15px;
}
.modal .modal-content ul li {
  font-weight: var(--font-weight-regular);
  font-size: var(--font-regular);
  line-height: 19px;
  color: var(--color-black);
  margin-bottom: 10px;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal .modal-content li span {
  font-weight: var(--font-weight-semibold);
}
.modal .modal-content li a {
  color: var(--color-blue);
  text-decoration: underline;
}
.modal .modal-content .close-btn {
  margin-top: 40px;
  text-align: right;
}
.modal .modal-content .close-btn .close-modal {
  padding: 10px 25px;
  width: auto;
  font-size: var(--font-regular);
  border-radius: 50px;
  font-weight: var(--font-weight-regular);
}

/* Scroll up */
.scrollup {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-blue);
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: var(--border-radius);
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  cursor: pointer;
}
.scrollup.show {
  opacity: 1;
  visibility: visible;
}

/* media queries */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
  .d-flex {
    flex-direction: column;
  }
  .btn {
    width: auto;
    padding: 13px 30px;
  }
  h2 {
    margin-bottom: 40px;
  }
  .ptb-100 {
    padding: 60px 0;
  }
  .features {
    margin-top: 30px;
  }

  .features-inner {
    padding: 20px 0px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .feature-item {
    text-align: center;
    padding: 35px 0px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-main);
  }
  .feature-item .icon {
    margin-bottom: 15px;
    margin-right: 0px;
  }

  .progressbar-item {
    padding: 15px 15px;
  }

  .progressbar-content {
    margin-bottom: 10px;
    flex-direction: row !important;
  }

  .services-block {
    padding: 30px 30px;
  }
  .cta .cta-inner {
    padding: 40px 35px;
    text-align: center;
  }
  .cta-content {
    margin-bottom: 20px;
  }
  .cta .cta-inner h3 {
    line-height: 35px;
  }
  .cta .cta-inner p {
    width: 100%;
  }
  .projects-inner .project-item {
    width: 100%;
  }
  .project-view.d-flex {
    flex-direction: row;
  }
  .testmonial {
    padding: 60px 0;
  }

  .testmonial-item .client-data {
    width: 100%;
    justify-content: center;
  }
  .testmonial-item {
    padding: 30px 30px;
    text-align: center;
  }
  .testmonial-item .client-data img {
    margin-right: 0;
  }
  .contact-inner .input-block {
    width: 100%;
  }
  .contact-inner {
    padding: 40px 30px;
    gap: 20px;
  }
  footer {
    padding: 80px 0 0;
  }
  .footer-bottom {
    padding: 20px 0;
    margin-top: 50px;
  }
  .footer-social {
    margin-top: 15px;
  }
}
.owl-carousel{
  direction: ltr !important;
 }
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 20px;
    width: 95%;
  }
  .btn {
    width: auto;
    padding: 13px 30px;
  }
  h2 {
    margin-bottom: 40px;
  }
  .ptb-100 {
    padding: 60px 0;
  }
  .hero-section {
    height: auto;
    padding: 30px 0;
  }
}

/*/////*/


.text_purple{
  color:#7854f7 !important;
}
.persian{
  font-family:persian_1 !important;
}
.like_div_img{
  width:100%;
  height:82px;
  overflow:hidden;
  position:relative;
}
.like_div_img * {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}
.like_div_img:hover{
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.img_logo{
  width:30px;
}

.div_10{
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius:20px;
}

.div_10:hover{
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.education {
  padding: 60px 20px;
  background: linear-gradient(135deg, #eaf3ff, #ffffff);
  text-align: center;
}

.education h2 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.edu-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.edu-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.edu-card h3 {
  color: #00bcd4;
  margin-bottom: 15px;
}

.edu-card p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #333;
}
