* {
  box-sizing: border-box;
  text-decoration: none;
  direction: rtl;
  list-style: none;
  padding: 0;
  margin: 0;
}


:root {
  /* --gradient: linear-gradient(135deg, #a3b18a 0%, #3a5a40 100%); */
  --back-color: #333d29;
  --gradient-reverse: linear-gradient(135deg, #3a5a40 0%, #a3b18a 100%);
  --card: #272524;
  --primary-color: #84a98c;
  --secondary-color: #e74c3c;
  --accent-color: #344e41;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --navigation-h: 50px; 
}
@font-face{
  font-family:'IRANSans' ;
  src: url('Fonts/IRANSansWebFaNum.woff2') format('woff2'),
      url('Fonts/IRANSansWebFaNum.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
   
}

@font-face{
  font-family: 'IRANSans';
  src: url('Fonts/IRANSansWeb_Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;

}
html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
html{
  background: var(--back-color);
  background-attachment: fixed;
  min-height: 100vh;

}
main{
  width: 100vw;
  height: 100vh;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--navigation-h);
  /* min-height: 100vh; */
  /* background:transparent; */
  color: #fdfcfd;
  font-family:'IRANSans' ;

}

/* ------------------------------------------------------------استایل نوار-----------------------------------------------------------*/
.navigation{
  position:relative;
  width:800px;
  height: 70px;
  background:linear-gradient(90deg, #354f52, #52796f, #354f52);
  display: flex;
  justify-content: space-between;
  align-items:center ;
  border-radius:12px;
  margin: 0 auto;
}
.navigation ul{
  display: flex;
  width: 100%;
  position: relative;
}
.navigation ul li{
  position: relative;
  display: flex;
  width: 140px; /* چون 700px / 5 */
  height: 70px;
  justify-content:space-between;
  z-index: 3000;
}
.navigation ul li a{
  position: relative;
  display: flex;
  justify-content:center ;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: 500;
  color: #fff;
}
.navigation ul li a .icon{
  position:relative;
  display:block;
  line-height: 70px;
  font-size: 1.5em;
  text-align: center;
  justify-content: center;
  transition: 0.5s;
}
.navigation ul li.active a .icon{
  transform: translateY(-32px);
}


.navigation ul li a .text{
  position: absolute;
  font-weight: 400;
  font-size: 0.75em;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}
.navigation ul li.active a .text{
  transform: translateY(10px);
  opacity: 1;
}
.navigation ul li a .circle{
  position:absolute;
  width:50px ;
  height: 50px;
  background:transparent ;
  border-radius: 50%;
  border: 1.8px solid #fff;
  transform: translateY(-35px) scale(0);
}
.navigation ul li.active a .circle{
  transition: 0.3s;
  transition-delay: 0.3s;
  transform: translateY(-35px) scale(1);
}
.navigation ul li:nth-child(1).active~.indicator{
  transform: translateX(calc(140px * 0));
}
.navigation ul li:nth-child(2).active~.indicator{
  transform: translateX(calc(140px * 1));
}
.navigation ul li:nth-child(3).active~.indicator{
  transform: translateX(calc(140px * 2));
}
.navigation ul li:nth-child(4).active~.indicator{
  transform: translateX(calc(140px * 3));
}
.navigation ul li:nth-child(5).active~.indicator{
  transform: translateX(calc(140px * 4));
}
.indicator{
  position:absolute;
  width: 70px;
  height: 70px;
  background: linear-gradient(90deg, #354f52, #52796f, #354f52);
  border: 6px solid #333d29;
  border-radius: 50%;
  top: -50%;
  left:0;
  right:auto;
  z-index: 2999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: none;
}
.indicator.animated {
  transition: transform 0.4s ease;
}
.indicator::before{
  content: '';
  position: absolute;
  top: 50%;
  right: -22px;
  width: 20px;
  height:20px ;
  background:transparent ;
  border-top-left-radius: 20px;
  box-shadow: -1px -10px 0 #333d29 ;
}
.indicator::after{
  content: '';
  position: absolute;
  top: 50%;
  left: -22px;
  width: 20px;
  height:20px ;
  background:transparent ;
  border-top-right-radius: 20px;
  box-shadow: 1px -10px 0 #333d29 ;
}
/* لوگوی بالا چپ */
#logo-fixed {
  position: absolute;
  top: -6px;
  left:14px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 2000;
  opacity: 1;
}

#logo-fixed img {
  width: 100%;
  height: auto;
}


/*---------------------------------------------محوشوندگی---------------------------------------------*/


/* ------------------------------------------استایل همبرگر ------------------------------------------*/
.hamburger {
  display: none;
  position: relative;
  order: -1;
  margin-right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
  transition: transform 0.4s;
}
.hamburger.active {
  transform: rotate(90deg);
}
.hamburger :focus {
  outline: 2px dashed #ffda67;
  background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hamburger {
    display:block;
    order: 2;
    z-index: 3800;
    
  }
  

  .nav-links li {
    margin: 0.8rem 0;
    /*margin: 0;
    */opacity: 0;
    transform: translateX(0);
    transition: all 0.4s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  @media (max-width: 768px) {
    .nav-links {
      display: none; /* منو مخفی باشد */
      position: absolute;
      top: 300%;
      right: 5%;
      background: rgba(39, 37, 36, 0);
      flex-direction: column;
      max-width: 250px;
      width: auto;
      padding: 1rem 2rem;
      border-radius: 10px;
      transition: all 0.4s ease-in-out;
      z-index: 900;
 
    }
    .navigation {
      background:transparent;
    }
    .nav-links a {
      color: #ffda67 !important; /* رنگ زرد برای تضاد */
    }
 
    @media (max-width: 768px) {
      #logo-fixed {
        display: none; /* مخفی کردن لوگو فقط در موبایل */
      }
    }
    @media (max-width: 768px) {
      .indicator {
        display: none; /* مخفی کردن لوگو فقط در موبایل */
      }
    }
    @media (max-width: 768px) {
      .navigation ul li a .circle {
        display: none; /* مخفی کردن لوگو فقط در موبایل */
      }
    }
    @media (max-width: 768px) {
      .navigation ul li a .icon{
        display: none; /* مخفی کردن لوگو فقط در موبایل */
      }
    }
  
    .nav-links.active {
      display: flex; /* وقتی فعال شد، نمایش داده شود */
      background: rgba(39, 37, 36, 0.85);
    }
  }
  @media (max-width: 768px) {
    .navigation ul li a .text {
      opacity: 1 !important;
      transform: translateY(0) !important;
      font-size: 1rem !important;
      display: block !important;
    }
  }

  
  
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
}
/* --------------------------------------------------------------------home-------------------------------------- */
.card {
  display: flex; 
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 70vw;
  max-width: 650px;
  padding: 44px 30px 44px 20px;
  /* background: var(--card); */
  border-radius: 24px;
  margin:200px auto 50px; 
  position: relative;
  z-index: 1;
  background: rgba(39, 37, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}
img, iframe {
  max-width: 100%;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card .content {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  min-height: 220px; /* یا به تناسب متن واقعی */
  overflow: hidden;
  position: relative;
}

.card img {
  max-width: 280px;
  flex-shrink: 0;
  min-width: 220px;
  width: 36vw;
  height: 300px;
  object-fit:contain;
  margin-left:30px;
  margin-right: -70px;
  border-radius: inherit;
  box-shadow: 0 60px 40px rgb(0 0 0 / 8%);
  transition: border-radius 0.3s;
  background:radial-gradient(#2d6a4f ,#a3b18a); border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.card:hover img {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.card h1 {
  font-size: 30px;
  font-weight: 600;
  margin-top: 0;
  margin-right: 30px;
  margin-bottom: 10px;
}

.card h2 {
  font-size: 25px;
  font-weight: 400;
  margin: 0;
  opacity: 0.75;
}

.card p {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 30px;
  opacity: 0.5;
}

.socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
}
.socials a {
  width: 60px;
  height: 60px;
  background-color: #3a5a40; /* پس‌زمینه تیره و هماهنگ با کارت */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ccff33; /* رنگ طلایی (یا هر رنگ دلخواه هماهنگ با تم) */
  font-size: 26px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #a3b18a;
}
.socials a:hover {
  transform: scale(1.15);
  background: var(--gradient);
  color: white;
  border: 2px solid whitesmoke  ;
}

.socials > button {
  position: relative;
  border: 0;
  background: transparent;
  color: #f8f8f8;
  padding: 0;
}

.socials > button:first-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--gradient);
  transition: 0.3s;
  transform: translateY(0);
}

.socials > button > i {
  position: relative;
  z-index: 1;
  border: 4px solid var(--card);
  background: #3f3b39;
  display: grid;
  place-items: center;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 40px;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .card {
    width: 90%;
    margin-top: 4rem;
    padding: 30px;
    flex-direction: column;
  }
  
  .card img {
    width: 60%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px;
  }
  
  .content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .card {
    margin-top: 100px;
    padding: 20px;
  }
  
  .card h1 {
    font-size: 24px;
  }
  
  .card h2 {
    font-size: 18px;
  }
}
/* -----------------------------------------------------------------end----------------------------------------------- */

/*............................................................................................about................................................................................................................*/

.about-section {
  width: 100%;
  padding: 10rem 0;


}
.about-gride {
  display: grid;
  grid-template-columns: 350px 2fr; /* ستون سمت چپ انعطاف پذیر، سمت راست ثابت */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 3rem;
  align-items: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.about-img {
  width: 250px;
  height:250px;
  margin-top: 8rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px #4ecdc4, 0 0 60px #349090;
  background-color: #afa6a6;
  animation: glow-border 1.5s infinite alternate;
  margin-left: auto; 
  justify-self: center;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-text {
  flex: 1.1rem;

}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}



.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* لیست تیک‌دار */
.tick-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  /* counter-reset: list-counter; */
}

.tick-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-right: 2rem;
  font-size: 1rem;
  line-height: 1.6;

}

.tick-list li::before {
  content: "•";
  color: var(--accent-color);
  font-size: 2rem;
  position: absolute;
  right: 0;
  top: -5px;
  opacity: 0;
}

/* انیمیشن کادر درخشان */
@keyframes glow-border {
  0% {
    box-shadow: 0 0 10px #4ecdc4, 0 0 20px #349090;
  }
  100% {
    box-shadow: 0 0 10px #a3e6de, 0 0 20px #4ecdc4;
  }
}

/* نسخه موبایل */
@media (max-width: 768px) {

  .about-gride {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
   
  }
  .about-container {
    grid-row: 2;
    text-align: center;
  }

  .about-img {
    width: 220px;
    height: 220px;
    margin: 0rem auto 1rem;
    grid-row: 1;
  }



  .tick-list li {
    padding-right: 1.5rem;
    text-align: right;
  }
}


/* -----------------------------------------------------------------------------------------------------استایل تخصص‌ها -----------------------------------------------------------------------------------------------*/
.expertise-section {
  padding: 8rem 5%;
  background-color: var(--primary-color);
  color: white;
}

.expertise-container {
  max-width: 1200px;
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.expertise-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.expertise-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------تماس با من ------------------------------- */

.contact-left{
  flex-basis: 35%;
  text-align: center;
}
.contact-right{
  flex-basis: 60%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* مرکز چین کردن فرم */
  justify-content: center;
}
.contact-left p{
 margin-top: 30px;
}
.contact-left p i{
  color: #fffffc;
  margin-left: 15px;
  font-size: 25px;
}
.social-icon{
  margin-top: 30px;
}
.social-icon a{
  display: inline-block;
  padding: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffda67; 
  font-size: 26px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;

}
.social-icon a:hover{
   transform: scale(1.15);
  color: white;
}
.btn{
  width: 100px;
  height: 40px;
  background-color: #3f3b39;
  border-radius: 8px;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  color: #ffda67;
  font-size: 16px;
  font-weight: bold;
  border: none;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;

}
.btn:hover{
  transform: scale(1.05);
  background: linear-gradient(to right, #ffda67, #f5b942);
  color: black;
  border: none;
}
.contact-right form{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
form input, form textarea{
  width: 100%; 
  border: 2px solid transparent;
  outline: none;
  max-width: 500px;
  border: 0;
  outline: none;
  background-color: #3f3b39;
  padding: 12px;
  margin: 8px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  border-radius: 6px;
  transition: 0.3s ease;
  
}
#contact {
  margin-top: 140px; /* فضای خالی به اندازه نوار ناوبری */
}
.form-title {
  color: #ffda67;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}
.form-box {
  background-color: #2c2b29;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}
form input:hover,
form textarea:hover,
form input:focus,
form textarea:focus {
  border: 2px solid #ffda67;
  background-color: #4d4947;
}
/* ----------------------------------------------------------------------------- */
