  @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    scroll-behavior: smooth;
    direction: rtl;
    color: #333;
  }

  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  nav {
    position: fixed;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: white;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    user-select: none;
  }

  .nav-links {
    display: flex;
    list-style: none;
  }

  .nav-links li {
    margin-right: 15px;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.6s forwards;
  }

  .nav-links li:nth-child(1) { animation-delay: 0.2s; }
  .nav-links li:nth-child(2) { animation-delay: 0.4s; }
  .nav-links li:nth-child(3) { animation-delay: 0.6s; }
  .nav-links li:nth-child(4) { animation-delay: 0.8s; }
  .nav-links li:nth-child(5) { animation-delay: 1s; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
    transform: translateY(-3px);
  }

  /* موبایل */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 3px 0;
    border-radius: 5px;
    transition: 0.3s;
  }

  @media (max-width: 768px) {
    nav {
      padding: 0.6rem 1rem;
      top: 5px;
    }
    
    .logo {
      font-size: 1.3rem;
    }
    
    .nav-links {
      display: none;
      position: absolute;
      top: 60px;
      right: 20px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 15px;
      backdrop-filter: blur(10px);
      padding: 1rem;
      flex-direction: column;
      width: calc(100% - 40px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    .nav-links.active {
      display: flex;
      animation: fadeInMenu 0.4s ease;
    }

    @keyframes fadeInMenu {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .nav-links li {
      margin: 8px 0;
      text-align: center;
    }

    .hamburger {
      display: flex;
    }
  }

  #contact {
  max-width: 90%;
  margin: 100px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: #222;
  transition: all 0.3s ease;
}
#contact:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(31, 38, 135, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* استایل فرم داخل تماس */
#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact label {
  margin: 10px 0 5px;
  font-weight: bold;
  font-size: 0.9rem;
}

#contact input,
#contact textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

#contact button {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: #ff6f91;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

#contact button:hover {
  background: #ff4f78;
  transform: translateY(-2px);
}

  #about {
    margin-top: 100px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #222;
    text-align: center;
    user-select: none;
    transition: all 0.3s ease;
  }
  #about:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  /* استایل هدر بزرگ شیشه‌ای بالای سایت */
  #hero {
    display: grid;
    place-items: center;
    margin-top: 120px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #222;
    text-align: center;
    user-select: none;
    transition: all 0.3s ease;
  }
  #hero:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  @keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blinkCaret {
  0%, 100% { border-color: transparent }
  50% { border-color: #444 }
}

@keyframes typing {
  from { width: 0 }
  to { width: 16ch; } /* تعداد کاراکترها رو اینجا بذار */
}

@keyframes blinkCaret {
  0%, 100% { border-color: transparent }
  50% { border-color: #444 }
}

#hero h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #444;
  text-shadow: 3px 3px 15px rgba(255, 153, 153, 0.4);
  margin-bottom: 15px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  border-left: 4px solid #444;
}

.typing {
  animation: typing 5s steps(21, end) forwards,
            blinkCaret 0.7s step-end infinite;
}


  #hero p {
    font-size: 1rem;
    color: #555;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* استایل بخش محتوای اصلی - پایین */
  #intro {
    max-width: 90%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 20px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    color: #222;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    user-select: none;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    margin-top: 30px;
    margin-bottom: 100px;
  }
  #intro:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px 0 rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  #intro h2 {
    margin-top: 20px;
    color: #666;
    font-size: 1.2rem;
  }
  #intro p:last-child {
    font-weight: 600;
    color: #b33a3a;
  }
  .col1, .col2, .col3 {
    background: rgba(255, 190, 0, 0.600);
    box-shadow: 0 8px 20px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 15px auto;
    color: #222;
    font-size: 0.9rem;
    line-height: 1.6;
    user-select: none;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    width: 90%;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 15px;
}
.col1 h1, .col2 h1, .col3 h1 {
  font-size: 1.5rem;
  margin: 10px 0;
}
.col1 h3, .col2 h3, .col3 h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}
.col1:hover, .col2:hover, .col3:hover {
    box-shadow: 0 12px 30px 0 rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
.col2 {
    background: rgba(187, 187, 187, 0.600);
}
.col3 {
    background: rgba(193, 104, 14, 0.600);
}

#order {
    max-width: 90%;
    margin: 100px auto;
    padding: 20px;
    height: auto;
}
#order p{
    max-width: 90%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 20px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 15px;
    margin: 15px auto;
    color: #222;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    user-select: none;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}
#order p:hover{
  background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px 0 rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.boronz, .noghre, .tala {
    margin: 15px 0;
    padding-right: 15px;
}
.boronz li, .noghre li, .tala li {
    margin: 8px 0;
    list-style-position: inside;
    text-align: right;
}
.clear {
    clear: both;
}
.row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

#consult{
    max-width: 90%;
    margin: 100px auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #222;
    text-align: center;
    user-select: none;
    transition: all 0.3s ease;
}
#consult:hover{
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px 0 rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.links {
  text-align: center;
  padding: 1em;
}
.links img {
  width: 50px;
  height: auto;
  margin: 0 5px;
}

/* استایل‌های دسکتاپ */
@media (min-width: 768px) {
  nav {
    top: 20px;
    padding: 0.8rem 2rem;
    width: 90%;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .nav-links li {
    margin-right: 25px;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 8px 14px;
  }
  
  #hero {
    margin-top: 180px;
    padding: 60px 40px;
    border-radius: 30px;
  }
  
  #hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
  }
  
  #hero p {
    font-size: 1.1rem;
    max-width: 700px;
  }
  
  #intro, #about, #consult, #contact {
    max-width: 900px;
    padding: 40px;
    border-radius: 30px;
  }
  
  #intro {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 150px;
  }
  
  #intro h2 {
    font-size: 1.5rem;
  }
  
  .row {
    flex-direction: row;
    justify-content: center;
    gap: 2%;
    flex-wrap: wrap;
  }
  
  .col1, .col2, .col3 {
    width: 30%;
    margin: 20px 0;
    padding: 20px;
    border-radius: 25px;
  }
  
  .col1 h1, .col2 h1, .col3 h1 {
    font-size: 1.8rem;
  }
  
  #order p {
    font-size: 1.15rem;
  }
  
  .links img {
    width: 60px;
  }
}