

    :root {
      --ink: #090909;
      --ink-2: #151515;
      --paper: #f5f3ee;
      --white: #ffffff;
      --text: #252525;
      --muted: #77736b;
      --line: #ded9ce;
      --cyan: #c49a4a;
      --cyan-dark: #9b7129;
      --gold: #c49a4a;
      --coral: #d4af66;
      --shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
      --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.09);
      --radius: 10px;
      --header-h: 78px;
      --container: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: calc(var(--header-h) + 24px);
    }

    body {
      margin: 0;
      font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
      color: var(--text);
      background: var(--paper);
      line-height: 1.9;
      overflow-x: hidden;
 
  background: radial-gradient(circle at 80% 20%, #fdfbf7, #f3ede0);
  /* یک پترن محو */
  background-image: url("data:image/svg+xml,..."); /* می‌توانید یک پترن دات ریز اضافه کنید */
}

   

    body.menu-open,
    body.modal-open {
      overflow: hidden;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    ::selection {
      color: var(--white);
      background: var(--cyan-dark);
    }

    :focus-visible {
      outline: 3px solid var(--coral);
      outline-offset: 4px;
    }

    .scroll-progress {
      position: fixed;
      top: 0;
      right: 0;
      width: 0%;
      height: 4px;
      background: linear-gradient(90deg, var(--cyan), var(--gold), var(--coral));
      z-index: 9999;
      transition: width 0.08s linear;
    }

    .container {
      width: min(var(--container), calc(100% - 40px));
      margin: 0 auto;
    }

    .top-strip {
      height: 4px;
      background: linear-gradient(90deg, #8d651e, #c49a4a, #f0d28a, #9b7129);
      position: relative;
      z-index: 1001;
    }

    .skip-link {
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 10000;
      background: var(--white);
      color: var(--ink);
      padding: 10px 14px;
      border-radius: 8px;
      transform: translateY(-160%);
      transition: transform 0.2s ease;
      box-shadow: var(--shadow-soft);
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      height: var(--header-h);
      background: rgba(247, 248, 248, 0.82);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(223, 227, 230, 0.9);
      transition: all 0.3s ease;
    }

    header.scrolled {
      height: 68px;
      background: rgba(245, 243, 238, 0.95);
      box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .nav {
      min-height: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      white-space: nowrap;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--ink);
      color: var(--white);
      font-weight: 800;
      font-size: 18px;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease;
    }
    
    .brand:hover .brand-mark {
      transform: rotate(-10deg) scale(1.08);
      background: var(--cyan-dark);
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .brand-text strong {
      font-size: 17px;
      color: var(--ink);
      font-weight: 800;
    }

    .brand-text span {
      font-size: 12px;
      color: var(--muted);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-link {
      position: relative;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      transition: color 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--ink);
    }

    .nav-link::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -7px;
      width: 0;
      height: 2px;
      background: var(--cyan);
      transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
      width: 100%;
    }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 18px;
      border-radius: 999px;
      background: var(--ink);
      color: var(--white);
      transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .nav-cta:hover {
      transform: translateY(-3px) scale(1.03);
      background: var(--cyan-dark);
      box-shadow: 0 10px 20px rgba(196, 154, 74, 0.2);
    }

    .menu-btn {
      display: none;
      width: 46px;
      height: 46px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--white);
      color: var(--ink);
      font-size: 22px;
    }

    main {
      display: block;
    }

    section {
      padding: 110px 0;
      position: relative;
    }

    .section-head {
      max-width: 700px;
      margin-bottom: 42px;
    }

    .section-kicker {
      color: var(--gold);
      font-weight: 700;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-kicker::before {
      content: "";
      width: 28px;
      height: 2px;
      background: currentColor;
    }

    .section-title {
      margin: 0 0 14px;
      font-size: clamp(28px, 4vw, 48px);
      line-height: 1.45;
      color: var(--ink);
      font-weight: 800;
    }

    .section-desc {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
    }


     /* استایل کلی بخش */
.tech-section {
    padding: 60px 20px;
    text-align: center;
    background: transparent;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

/* شبکه کارت‌ها */
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

/* استایل شیشه‌ای کارت‌ها */
.tech-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* افکت جذاب هاور */
.tech-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37; /* رنگ طلایی */
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.tech-card i {
    font-size: 2rem;
    color: #333;
}

.tech-card span {
    font-size: 0.9rem;
    font-weight: 600;
}



    

    /* هیرو با انیمیشن‌های پس‌زمینه */
    .hero {
      background:
        radial-gradient(circle at 15% 20%, rgba(196, 154, 74, 0.08), transparent 25%),
        radial-gradient(circle at 85% 18%, rgba(0, 0, 0, 0.05), transparent 22%),
        linear-gradient(180deg, #faf9f6 0%, #f1eee7 100%);
      overflow: hidden;
    }

    /* دایره‌های درخشان و متحرک پس‌زمینه */
    .bg-glow-bubble {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      z-index: 1;
      opacity: 0.45;
      pointer-events: none;
      animation: floatGlow 15s infinite alternate ease-in-out;
    }

    .bubble-1 {
      width: 300px;
      height: 300px;
      background: var(--gold);
      top: 10%;
      left: 10%;
      animation-duration: 20s;
    }

    .bubble-2 {
      width: 250px;
      height: 250px;
      background: rgba(196, 154, 74, 0.4);
      bottom: 15%;
      right: 15%;
      animation-duration: 16s;
    }

    @keyframes floatGlow {
      0% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(40px, -60px) scale(1.1); }
      100% { transform: translate(-30px, 30px) scale(0.9); }
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 54px;
      align-items: center;
      position: relative;
      z-index: 2;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      animation: heroContentIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-badge {
      border: 1px solid rgba(196, 154, 74, 0.3);
      color: var(--gold);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      border-radius: 99px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 24px;
      background: rgba(255,255,255,0.5);
      backdrop-filter: blur(5px);
    }

    .hero-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 0 6px rgba(196, 154, 74, 0.14);
      animation: pulse 1.8s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0px rgba(196, 154, 74, 0.4); }
      100% { box-shadow: 0 0 0 8px rgba(196, 154, 74, 0); }
    }

    .hero h1 {
      margin: 0 0 18px;
      font-size: clamp(34px, 5vw, 60px);
      line-height: 1.35;
      color: var(--ink);
      font-weight: 900;
    }

   .hero h1 .accent {
  color: var(--cyan-dark);
  background: linear-gradient(120deg, var(--cyan-dark), var(--coral));
  
  /* ابتدا نسخه پیشونددار برای سازگاری با مرورگرهای قدیمی‌تر */
  -webkit-background-clip: text;
  /* نسخه استاندارد برای مرورگرهای جدید و رفع هشدار ویرایشگر */
  background-clip: text; 
  
  -webkit-text-fill-color: transparent;
  position: relative;
}

    /* تنظیم سایز متن تایپی */
.typing-text {
  font-size: 36px; /* 80 درصد سایز تایتل اصلی */
  display: block;   /* برای اینکه در موبایل بهتر مدیریت شود */
  margin-top: 10px; /* فاصله کمی از خط اول */
  font-weight: 700; /* وزن فونت را هم کمی کمتر کردم برای ظرافت بیشتر */
}

    /* افکت تایپوگرافی چشم‌گیر */
    .typing-text::after {
      content: "|";
      animation: blink 0.8s infinite;
      color: var(--cyan);
    }

    @keyframes blink {
      50% { opacity: 0; }
    }


    /* افکت حرفه‌ای روی کارت‌ها */
.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  border-color: #d4af37; /* رنگ طلایی */
}


    .hero p {
      max-width: 670px;
      margin: 0 0 30px;
      font-size: 17px;
      color: var(--muted);
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 34px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 54px;
      padding: 0 26px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 600;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .button-primary {
      background: var(--ink);
      color: var(--white);
      box-shadow: 0 16px 32px rgba(17, 20, 24, 0.12);
    }

    .button-primary:hover {
      transform: translateY(-4px) scale(1.02);
      background: var(--cyan-dark);
      box-shadow: 0 15px 30px rgba(196, 154, 74, 0.25);
    }

    .button-secondary {
      background: transparent;
      border-color: var(--line);
      color: var(--ink);
    }

    .button-secondary:hover {
      transform: translateY(-4px);
      border-color: var(--cyan);
      background: rgba(255,255,255,0.4);
      box-shadow: var(--shadow-soft);
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
    }

    .hero-meta-item {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    .hero-meta-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--gold);
      flex-shrink: 0;
    }

    /* بخش نمایش تصویر هیرو با افکت سه‌بعدی و مدرن */
    .hero-visual {
      position: relative;
      animation: heroVisualIn 1.3s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
      perspective: 1000px;
    }

    .hero-image-wrapper {
      position: relative;
      border-radius: 30px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      transform-style: preserve-3d;
      border: 1px solid rgba(255,255,255,0.2);
    }

    .hero-image-wrapper img {
      width: 100%;
      height: auto;
      object-fit: cover;
      transition: transform 0.8s ease, filter 0.5s ease;
    }

    .hero-image-wrapper:hover {
      transform: rotateY(-6deg) rotateX(4deg) translateY(-8px);
      box-shadow: 0 35px 70px rgba(196, 154, 74, 0.25);
      border-color: var(--cyan);
    }

    .hero-image-wrapper:hover img {
      transform: scale(1.04);
    }

    /* المان‌های معلق تزئینی روی عکس */
    .floating-badge {
      position: absolute;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px);
      border: 1px solid var(--line);
      padding: 12px 20px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: var(--shadow-soft);
      z-index: 5;
    }

    .badge-experience {
      bottom: 25px;
      right: -20px;
      animation: floatBadge 6s infinite ease-in-out;
    }

    .badge-satisfaction {
      top: 35px;
      left: -20px;
      animation: floatBadge 6s infinite ease-in-out 3s;
    }

    @keyframes floatBadge {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .badge-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--ink);
      color: var(--white);
      display: grid;
      place-items: center;
      font-size: 16px;
    }

    .services {
      background: var(--white);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }

    .service-card,
    .about-panel,
    .skill-card,
    .project-panel,
    .contact-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow-soft);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    /* افکت درخشش هنگام هاور کارت‌ها */
    .service-card::before,
    .skill-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(135deg, rgba(196, 154, 74, 0.08) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .service-card:hover::before,
    .skill-card:hover::before {
      opacity: 1;
    }

    .service-card:hover,
    .about-panel:hover,
    .skill-card:hover,
    .project-panel:hover,
    .contact-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 25px 50px rgba(196, 154, 74, 0.12);
      border-color: rgba(196, 154, 74, 0.4);
    }

    .service-card {
      padding: 35px 30px;
    }

    .service-icon-box {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      background: rgba(196, 154, 74, 0.1);
      color: var(--cyan-dark);
      display: grid;
      place-items: center;
      font-size: 22px;
      margin-bottom: 22px;
      transition: all 0.3s ease;
    }

    .service-card:hover .service-icon-box {
      background: var(--cyan-dark);
      color: var(--white);
      transform: scale(1.08) rotate(-5deg);
    }

    .service-index {
      position: absolute;
      top: 25px;
      left: 30px;
      color: rgba(196, 154, 74, 0.2);
      font-size: 14px;
      font-weight: 800;
    }

    .service-card h3 {
      margin: 0 0 12px;
      font-size: 22px;
      line-height: 1.5;
      color: var(--ink);
    }

    .service-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .about {
      background: linear-gradient(180deg, #f7f8f8 0%, #f2f4f5 100%);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 30px;
      align-items: start;
    }

    .about-panel {
      padding: 28px;
    }

    .about-info-list {
      display: grid;
      gap: 8px;
    }

    .about-info-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
    }

    .about-info-item:last-child {
      border-bottom: 0;
    }

    .about-info-item strong {
      color: var(--ink);
    }

    .about-info-item span {
      color: var(--muted);
      text-align: left;
    }

    .about-content p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 15px;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 28px;
    }

    .stat {
      padding: 20px 18px;
      border-radius: 20px;
      background: var(--white);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-soft);
      text-align: center;
      transition: all 0.3s ease;
    }

    .stat:hover {
      border-color: var(--cyan);
      transform: scale(1.03);
    }

    .stat strong {
      display: block;
      font-size: 30px;
      line-height: 1.2;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .stat span {
      color: var(--muted);
      font-size: 13px;
    }

    .project {
      background: var(--white);
    }

    .project-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      align-items: start;
    }

    .project-panel {
      overflow: hidden;
    }

    .project-gallery {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      padding: 18px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      background: #eef2f4;
      min-height: 180px;
      cursor: zoom-in;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      min-height: 180px;
      object-fit: cover;
      transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .gallery-item:hover img {
      transform: scale(1.08);
    }

    .project-content {
      padding: 30px;
    }

    .project-tag {
      background: rgba(196, 154, 74, 0.12);
      color: var(--gold);
      display: inline-block;
      padding: 4px 12px;
      border-radius: 50px;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .project-content h3 {
      margin: 0 0 14px;
      font-size: 30px;
      color: var(--ink);
    }

    .project-content p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 15px;
    }

    .project-list {
      list-style: none;
      margin: 22px 0 28px;
      padding: 0;
      display: grid;
      gap: 12px;
    }

    .project-list li {
      position: relative;
      padding-right: 26px;
      color: var(--text);
      font-size: 14px;
    }
    
    .project-list li::before {
      content: "\f00c";
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      position: absolute;
      right: 0;
      top: 2px;
      color: var(--gold);
      font-size: 12px;
    }

    .skills {
      background: linear-gradient(180deg, #f7f8f8 0%, #f3f5f6 100%);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .skill-card {
      padding: 28px 24px;
    }

    .skill-card-icon {
      font-size: 26px;
      color: var(--cyan);
      margin-bottom: 14px;
    }

    .skill-card h4 {
      margin: 0 0 10px;
      font-size: 18px;
      color: var(--ink);
    }

    .skill-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .contact {
      position: relative;
      overflow: hidden;
      background: #090909;
      color: var(--white);
    }

    .contact::before {
      content: "";
      position: absolute;
      width: 520px;
      height: 520px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.05);
      left: -220px;
      top: -170px;
    }

    .contact .section-title,
    .contact .section-desc {
      color: var(--white);
    }

    .contact .section-desc {
      color: rgba(255, 255, 255, 0.72);
    }

    .contact-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      align-items: start;
    }

    .contact-card {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow: none;
      color: var(--white);
    }

    .contact-panel {
      padding: 35px;
    }

    .contact-list {
      list-style: none;
      padding: 0;
      margin: 26px 0 0;
      display: grid;
      gap: 14px;
    }

    .contact-list li {
      display: flex;
      align-items: center;
      gap: 14px;
      color: rgba(255, 255, 255, 0.9);
      font-size: 15px;
    }

    .contact-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--gold);
      font-size: 16px;
      flex-shrink: 0;
    }

    .contact-form {
      padding: 35px;
    }

    .field {
      margin-bottom: 16px;
    }

    .field label {
      display: block;
      margin-bottom: 8px;
      color: rgba(255, 255, 255, 0.8);
      font-size: 13px;
    }

    .field input,
    .field textarea {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--white);
      padding: 14px 16px;
      outline: none;
      transition: all 0.3s ease;
    }

    .field input::placeholder,
    .field textarea::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .field input:focus,
    .field textarea:focus {
      border-color: var(--cyan);
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 0 15px rgba(196, 154, 74, 0.15);
    }

    .field textarea {
      min-height: 140px;
      resize: vertical;
    }

    .submit-btn {
      width: 100%;
      min-height: 52px;
      background: linear-gradient(90deg, #a87927, #c49a4a, #d8b76f);
      color: #090909;
      border: 0;
      border-radius: 999px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.4s ease;
    }

    .submit-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 32px rgba(196, 154, 74, 0.3);
    }

    footer {
      background: #0d1014;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 24px 0;
    }

    .footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      color: rgba(255, 255, 255, 0.62);
      font-size: 13px;
    }

    .footer-links {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .footer-links a:hover {
      color: var(--white);
    }

    /* مودال نمایش عکس */
    .modal {
      position: fixed;
      inset: 0;
      z-index: 9998;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(9, 12, 16, 0.88);
      backdrop-filter: blur(10px);
    }

    .modal.active {
      display: flex;
    }

    .modal-box {
      position: relative;
      width: min(1100px, 100%);
      background: var(--white);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
      animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes modalIn {
      from { transform: scale(0.92); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-box img {
      width: 100%;
      max-height: 80vh;
      object-fit: contain;
      background: #ffffff;
    }

    .modal-close {
      position: absolute;
      top: 14px;
      left: 14px;
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      font-size: 24px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* انیمیشن‌های پیشرفته ظاهر شدن */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
      opacity: 0;
      filter: blur(8px);
      transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.85s ease;
      will-change: transform, opacity;
    }

    .reveal {
      transform: translateY(50px);
    }

    .reveal-left {
      transform: translateX(-60px);
    }

    .reveal-right {
      transform: translateX(60px);
    }

    .reveal-scale {
      transform: scale(0.9);
    }

    .reveal.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible,
    .reveal-scale.is-visible {
      opacity: 1;
      filter: blur(0);
      transform: translate(0, 0) scale(1);
    }

    .delay-1 { transition-delay: 0.08s; }
    .delay-2 { transition-delay: 0.16s; }
    .delay-3 { transition-delay: 0.24s; }
    .delay-4 { transition-delay: 0.32s; }

    @keyframes heroContentIn {
      from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
      }
    }

    @keyframes heroVisualIn {
      from {
        opacity: 0;
        transform: translateX(-50px) rotateY(15deg) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translateX(0) rotateY(0) scale(1);
      }
    }

    @media (max-width: 1100px) {
      .hero-grid,
      .about-grid,
      .project-layout,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 90px;
      }

      .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      
      .badge-experience, .badge-satisfaction {
        display: none; /* مخفی کردن مدال‌های شناور در تبلت و موبایل */
      }
    }

    @media (max-width: 820px) {
      :root {
        --header-h: 74px;
      }

      .nav-links {
        position: absolute;
        top: calc(var(--header-h) + 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 45px rgba(17, 20, 24, 0.08);
      }

      .nav-links.show {
        display: flex;
      }

      .menu-btn {
        display: inline-grid;
        place-items: center;
      }

      .services-grid,
      .skills-grid,
      .stats,
      .project-gallery {
        grid-template-columns: 1fr;
      }

      section {
        padding: 84px 0;
      }

      .hero h1 {
        font-size: 38px;
      }

      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .button {
        width: 100%;
      }
    }

    @media (max-width: 560px) {
      .container {
        width: min(100% - 24px, var(--container));
      }

      .brand-text strong {
        font-size: 15px;
      }

      .brand-text span {
        font-size: 11px;
      }

      .hero-badge {
        font-size: 12px;
      }

      .hero p,
      .section-desc,
      .about-content p,
      .project-content p {
        font-size: 14px;
      }

      .project-content,
      .service-card,
      .about-panel,
      .skill-card,
      .contact-panel,
      .contact-form {
        padding: 22px;
      }

      .gallery-item,
      .gallery-item img {
        min-height: 210px;
      }
    }

    :root {
  --paper: #f7f3eb;
  --ink: #18130c;
  --text: #342b20;
  --muted: #766b5d;
  --line: rgba(120, 91, 49, 0.18);
  --gold: #bd8732;
  --cyan: #d6aa5b;
  --cyan-dark: #8f5f1d;
  --coral: #efc977;
  --radius: 20px;
}

body {
  background:
    radial-gradient(circle at 7% 10%, rgba(214, 170, 91, .22), transparent 24rem),
    radial-gradient(circle at 92% 33%, rgba(142, 96, 29, .11), transparent 28rem),
    linear-gradient(135deg, #fcfaf5 0%, #f2e9d9 100%);
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255,255,255,.82), rgba(255,255,255,.25)),
    radial-gradient(circle at 76% 30%, rgba(196,154,74,.27), transparent 22rem);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -260px;
  border: 1px solid rgba(143, 95, 29, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(143, 95, 29, .035),
              0 0 0 96px rgba(143, 95, 29, .025);
}

.hero h1 {
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.typing-text {
  min-height: 1.55em;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.55;
}

.hero p {
  font-size: 18px;
  line-height: 2.05;
}

.hero-image-wrapper {
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(135deg, #fff, rgba(214,170,91,.55));
  box-shadow: 18px 22px 0 rgba(143,95,29,.12), var(--shadow);
}

.hero-image-wrapper img {
  border-radius: 20px;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.tech-section {
  position: relative;
  margin: -35px auto 0;
  width: min(1080px, calc(100% - 40px));
  padding: 30px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 50px rgba(74,49,14,.10);
  backdrop-filter: blur(16px);
  z-index: 3;
}

.tech-section .section-title {
  color: var(--ink);
  font-size: 21px;
  margin-bottom: 20px;
}

.tech-card {
  min-width: 135px;
  background: rgba(255,255,255,.7);
  border-color: rgba(143,95,29,.12);
}

.tech-card:hover {
  background: #fff;
  color: var(--cyan-dark);
}

.tech-card:hover i {
  color: var(--cyan-dark);
}

.service-card,
.about-panel,
.skill-card,
.project-panel {
  background: linear-gradient(145deg, #fff, #fbf7ef);
}

.service-card {
  min-height: 270px;
}

.service-card h3,
.skill-card h4 {
  transition: color .3s ease;
}

.service-card:hover h3,
.skill-card:hover h4 {
  color: var(--cyan-dark);
}

.skills,
.about {
  background:
    linear-gradient(rgba(249,246,239,.93), rgba(245,238,225,.93)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(143,95,29,.025) 18px 19px);
}

.stat {
  background: linear-gradient(145deg, #fff, #f7efe2);
}

.stat strong {
  color: var(--cyan-dark);
}

.project-gallery {
  background: #f6efe3;
}

.gallery-item {
  border: 1px solid rgba(143,95,29,.13);
  box-shadow: 0 10px 22px rgba(63,42,11,.09);
}

.contact {
  background:
    radial-gradient(circle at 90% 10%, rgba(196,154,74,.33), transparent 24rem),
    linear-gradient(135deg, #15100a, #080706);
}

.contact-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .tech-section {
    margin-top: 0;
    width: min(100% - 24px, 1080px);
  }

  .typing-text {
    font-size: 29px;
  }
}



/* گوی‌های انرژی / الکتریکی در پس‌زمینه هیرو */
.electric-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.electric-orb {
  position: absolute;
  width: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.75;

  background:
    radial-gradient(circle at 50% 50%,
      #fff8dd 0%,
      #f5d17d 10%,
      #c48b2d 28%,
      rgba(196, 154, 74, 0.45) 44%,
      transparent 70%);

  box-shadow:
    0 0 14px rgba(255, 231, 164, 0.95),
    0 0 34px rgba(196, 154, 74, 0.75),
    0 0 80px rgba(196, 154, 74, 0.38),
    inset 0 0 18px rgba(255, 255, 255, 0.95);

  animation: orbFloat 12s ease-in-out infinite;
}

/* حلقه‌ی انرژی اطراف گوی */
.electric-orb::before,
.electric-orb::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 1px solid rgba(228, 188, 95, 0.75);
  filter: drop-shadow(0 0 6px rgba(222, 169, 56, 0.9));
  animation: electricPulse 2.8s ease-in-out infinite;
}

.electric-orb::after {
  inset: -26px;
  border-style: dashed;
  border-color: rgba(196, 154, 74, 0.45);
  animation-delay: -1.4s;
  animation-duration: 4s;
}

/* ذرات نور کوچک روی گوی */
.electric-orb {
  overflow: visible;
}

.orb-one {
  top: 12%;
  left: 5%;
  width: 150px;
  animation-delay: -2s;
}

.orb-two {
  bottom: 7%;
  right: 7%;
  width: 100px;
  opacity: 0.55;
  animation-delay: -6s;
  animation-duration: 15s;
}

.orb-three {
  top: 55%;
  left: 40%;
  width: 58px;
  opacity: 0.5;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  35% {
    transform: translate3d(35px, -48px, 0) scale(1.08);
  }

  70% {
    transform: translate3d(-28px, 30px, 0) scale(0.92);
  }
}

@keyframes electricPulse {
  0%, 100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.25;
  }

  50% {
    transform: scale(1.22) rotate(110deg);
    opacity: 1;
  }
}

/* رعایت تنظیمات کاربران حساس به حرکت */
@media (prefers-reduced-motion: reduce) {
  .electric-orb,
  .electric-orb::before,
  .electric-orb::after {
    animation: none;
  }
}

/* در موبایل گوی‌ها کوچک‌تر و خلوت‌تر باشند */
@media (max-width: 820px) {
  .orb-one {
    width: 90px;
    top: 8%;
    left: -25px;
  }

  .orb-two {
    width: 65px;
    right: -15px;
  }

  .orb-three {
    display: none;
  }
}
.bg-glow-bubble {
  display: none;
}

