/* =========================================
   ۱. فونت مدرن فارسی (Vazirmatn)
========================================= */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

/* =========================================
   ۲. متغیرهای سراسری سیستم طراحی (Design System)
========================================= */
:root {
  /* رنگ‌های اصلی الهام گرفته از لوگوی شما */
  --bg-dark: #000000;
  --bg-surface: rgba(10, 15, 25, 0.6);
  
  /* پالت اختصاصی متناسب با لوگوی آبی و نقره‌ای */
  --brand-blue: #0055ff;      /* رنگ آبی تیره پایین لوگو */
  --brand-cyan: #00d2ff;      /* رنگ آبی روشن/فیروزه‌ای بالای لوگو */
  --brand-silver: #e0e0e0;    /* رنگ نقره‌ای بخش G */
  
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;

  /* افکت‌های پیشرفته شیشه‌ای (Advanced Glassmorphism) */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* =========================================
   ۳. استایل‌های پایه و بدنه هوشمند (Global & Body)
========================================= */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.8;
  padding-top: 70px;
  padding-bottom: 0;
  overflow-x: hidden;
  
  /* پس‌زمینه گرادیانتی متحرک (طیف مشکی و آبی بسیار تیره) */
  background: linear-gradient(-45deg, #000000, #00122e, #050505, #001f3f);
  background-size: 400% 400%;
  animation: dynamicGradient 15s ease infinite;
}

@keyframes dynamicGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* سفارشی‌سازی اسکرول‌بار مدرن */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

::selection {
  background-color: var(--brand-cyan);
  color: #000;
}

/* =========================================
   ۴. منوبار شیشه‌ای ثابت بالا (Modern Navbar)
========================================= */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 60px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

.modern-navbar .logo img {
  height: 35px;
  width: auto;
  transition: all 0.3s ease;
}

.modern-navbar .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--brand-cyan);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

.modern-navbar .btn {
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-login {
  background: linear-gradient(45deg, var(--brand-cyan), var(--brand-blue));
  color: #fff;
}

.btn-login:hover {
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
}

.btn-logout {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-logout:hover {
  background: #ff4757;
  border-color: #ff4757;
}

/* =========================================
   ۵. فریم ورک عمومی کلاس‌های شیشه‌ای (Glass Base)
========================================= */
.glass-section, .portfolio, .faq-section {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px !important;
  box-shadow: var(--glass-shadow) !important;
  padding: 40px 25px;
  max-width: 1200px;
  margin: 50px auto;
}

.section-title-container {
  text-align: center;
  margin-bottom: 45px;
}

.section-title-container h2 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(to right, #fff, var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
}

.section-title-container p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* =========================================
   ۶. اسلایدر هیرو و المان‌های ۳بعدی
========================================= */
.hero-parallax-section {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 480px;
  background-color: var(--bg-dark);
  margin-top: 60px !important;
}

.heroSwiper {
  width: 100%;
  height: 100%;
}

.heroSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), #000000);
  z-index: 2;
}

.heroSwiper .overlay, 
.heroSwiper .slide-overlay,
.heroSwiper .slide-bg::after {
  background: transparent !important; 
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  width: 100%;
  max-width: 800px;
}

.slide-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.swiper-button-next, .swiper-button-prev { color: var(--brand-cyan) !important; }
.swiper-pagination-bullet-active { background: var(--brand-cyan) !important; }

.btn-hero-contact {
  display: inline-block;
  padding: 15px 38px;
  background-color: var(--brand-blue);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 85, 255, 0.35);
  transition: all 0.3s ease;
}

.btn-hero-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 85, 255, 0.55);
}

/* =========================================
   ۷. لوگوی بزرگ در بالاترین قسمت سایت
========================================= */
.showcase-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px 20px 10px;
  position: relative;
  z-index: 10;
}

.main-huge-logo {
  width: 100%;
  max-width: 450px;
  height: auto;
  animation: floatAndNeonGlow 3.5s ease-in-out infinite;
}

@keyframes floatAndNeonGlow {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.3)) 
            drop-shadow(0 0 30px rgba(0, 85, 255, 0.2));
  }
  50% { 
    transform: translateY(-12px) scale(1.03);
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.7)) 
            drop-shadow(0 0 45px rgba(0, 85, 255, 0.5)) 
            drop-shadow(0 0 70px rgba(0, 85, 255, 0.3));
  }
}

/* =========================================
   ۸. کامپوننت استوری‌ها (Stories)
========================================= */
.stories-section {
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.stories-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 5%;
}

.stories-container::-webkit-scrollbar { display: none; }

.story-card {
  flex: 0 0 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--brand-cyan);
  padding: 2px;
  background: var(--bg-dark);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.story-card:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }
.story-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* =========================================
   ۹. گرید پورتفولیو و پست‌ها
========================================= */
.posts-slider-section {
  padding: 40px 20px;
}

.postsSwiper {
  padding-bottom: 50px !important;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

.post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px);
  border-radius: 20px !important;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15) !important;
}

.post-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-img { transform: scale(1.04); }
.post-content { padding: 22px; }
.post-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px 0; color: #fff !important; }
.post-text { font-size: 0.9rem; color: var(--text-secondary) !important; line-height: 1.7; margin: 0; }

.btn-read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: linear-gradient(45deg, var(--brand-blue), var(--brand-cyan));
  color: white !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
  background: linear-gradient(45deg, var(--brand-cyan), var(--brand-blue));
}

/* =========================================
   ۱۰. مهارت‌ها و نوار پیشرفت (Skills)
========================================= */
.skills-container { display: flex; flex-direction: column; gap: 24px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 6px; color: #fff; font-weight: 600; }
.progress-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 10px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 0 12px var(--brand-cyan);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* =========================================
   ۱۱. مراحل انجام کار (Timeline)
========================================= */
.timeline { position: relative; border-right: 2px solid rgba(255, 255, 255, 0.08); padding-right: 25px; margin: 20px 10px; }
.timeline-step { position: relative; margin-bottom: 35px; opacity: 0; transform: translateX(20px); transition: all 0.6s ease; }
.timeline-step.visible { opacity: 1; transform: translateX(0); }
.timeline-step .dot {
  position: absolute; right: -33px; top: 4px; width: 14px; height: 14px;
  background: var(--bg-dark); border: 3px solid rgba(255,255,255,0.3); border-radius: 50%;
  transition: all 0.4s ease;
}
.timeline-step.visible .dot { background: var(--brand-cyan); border-color: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan); }
.timeline-step .content h4 { color: var(--brand-cyan); font-size: 1.1rem; margin: 0 0 6px 0; }
.timeline-step .content p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* =========================================
   ۱۲. پکیج‌ها و تعرفه‌ها (Pricing Tables)
========================================= */
.pricing-container { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; }
.price-card { 
  flex: 1; min-width: 290px; text-align: center; padding: 35px 25px !important;
  background: rgba(255, 255, 255, 0.01) !important; border: 1px solid var(--glass-border) !important;
  border-radius: 20px; transition: all 0.4s ease;
}
.price-card:hover { transform: translateY(-8px); border-color: var(--brand-cyan) !important; box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15) !important;}
.price-card h3 { color: #fff; font-size: 1.4rem; margin: 0; }
.price-card .price { color: var(--brand-cyan); font-size: 1.3rem; font-weight: 700; margin: 15px 0; }
.price-card ul { list-style: none; padding: 0; color: var(--text-secondary); line-height: 2.2; margin-bottom: 30px; font-size: 0.9rem; }
.pro-card { border-color: rgba(0, 210, 255, 0.4) !important; background: rgba(0, 85, 255, 0.05) !important;}

.btn-pulse {
  display: inline-block; padding: 12px 30px; background: var(--brand-blue); color: white; text-decoration: none; border-radius: 25px; font-weight: bold; font-size: 0.9rem;
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(0, 85, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0); }
}

/* =========================================
   ۱۳. گالری نمونه کارهای هماهنگ‌شده (Bottom Gallery)
========================================= */
.bottom-gallery-section { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.gallery-top { width: 100%; max-width: 940px; height: 460px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); margin-bottom: 15px; }
.gallery-main-media { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-title {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  color: #fff; padding: 25px; text-align: right; box-sizing: border-box;
}
.gallery-main-title h3 { margin: 0; font-size: 1.2rem; }
.gallery-thumbs { width: 100%; max-width: 940px; }
.gallery-thumbs .swiper-slide { height: 85px; opacity: 0.3; cursor: pointer; transition: opacity 0.3s ease; }
.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
.thumb-wrapper { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.gallery-thumbs .swiper-slide-thumb-active .thumb-wrapper { border-color: var(--brand-cyan); box-shadow: 0 0 12px rgba(0, 210, 255, 0.4); }
.gallery-thumb-media { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   ۱۴. اسلایدر چرخشی سه بعدی (3D Coverflow)
========================================= */
/* =========================================
   ۱۴. اسلایدر چرخشی سه بعدی (3D Coverflow)
========================================= */
.section-3d-carousel { 
  overflow: hidden; 
}

.swiper3DCarousel { 
  width: 100%; 
  padding: 40px 0 60px 0; /* فضای بیشتر برای نمایش بهتر هاله نور */
}

/* استایل پایه‌ی کارت‌ها با یک هاله ملایم آبی تیره */
.swiper3DCarousel .swiper-slide { 
  width: 290px; 
  height: 390px; 
  background-color: #050505; 
  border-radius: 20px; 
  overflow: hidden; 
  /* ترکیب سایه عمق‌دهنده مشکی و درخشش آبی ملایم */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 85, 255, 0.15); 
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* درخشش نئونی فیروزه‌ای و آبی برای کارتی که در مرکز قرار دارد */
.swiper3DCarousel .swiper-slide.swiper-slide-active {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.9), 
    0 0 25px rgba(0, 210, 255, 0.4),   /* هاله فیروزه‌ای نزدیک */
    0 0 50px rgba(0, 85, 255, 0.25);   /* هاله آبی تیره پخش‌شده */
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.carousel-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  position: absolute; 
}

.carousel-info { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  z-index: 2; 
  background: linear-gradient(transparent, #000000 80%); 
  padding: 25px 20px; 
  text-align: center; 
}

.carousel-info h3 { 
  margin: 0 0 6px 0; 
  color: var(--brand-cyan); 
  font-size: 1.2rem; 
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3); /* درخشش متن */
}

.carousel-info p { 
  margin: 0; 
  font-size: 0.85rem; 
  color: var(--text-secondary); 
}

/* =========================================
   ۱۵. آکاردئون سوالات متداول (FAQ)
========================================= */
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: rgba(255, 255, 255, 0.01) !important; border: 1px solid var(--glass-border) !important; border-radius: 14px; overflow: hidden; }
.faq-question {
  width: 100%; background: transparent; border: none; color: #fff !important; font-size: 1rem; font-weight: 700;
  text-align: right; padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}
.faq-question:hover, .faq-question.active { background: rgba(0, 210, 255, 0.05); color: var(--brand-cyan) !important; }
.faq-question .icon { font-size: 1.3rem; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-question.active .icon { transform: rotate(45deg); color: var(--brand-cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(0, 0, 0, 0.3); }
.faq-answer p { margin: 0; padding: 0 20px 20px 20px; color: var(--text-secondary) !important; font-size: 0.9rem; line-height: 1.8; }

/* =========================================
   ۱۶. انیمیشن هوشمند لودینگ (Preloader)
========================================= */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000000; z-index: 999999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-circle {
  width: 55px; height: 55px;
  border: 3px solid rgba(0, 210, 255, 0.1); border-top-color: var(--brand-cyan);
  border-radius: 50%; animation: spin 0.9s cubic-bezier(0.6, -0.2, 0.3, 1.2) infinite;
}
.loader-text { color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: 2px; animation: pulseText 1.5s infinite; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseText { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; text-shadow: 0 0 10px rgba(0, 210, 255, 0.4); } }

/* =========================================
   ۱۷. فوتر عریض مدرن (Main Footer)
========================================= */
.main-footer { margin: 60px auto 20px auto; border-radius: 24px; padding: 40px 30px; }
.footer-horizontal-headings { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.footer-horizontal-headings h3 { font-size: 0.95rem; margin: 0; font-weight: 600; color: var(--brand-cyan); }
.dot-separator { width: 5px; height: 5px; background-color: #444; border-radius: 50%; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.footer-info { flex: 2; min-width: 280px; }
.footer-info .logo { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; color: var(--brand-cyan); }
.footer-info p { color: var(--text-secondary); font-size: 0.85rem; max-width: 420px; }
.footer-social { flex: 1; min-width: 200px; }
.footer-social h4 { color: #fff; margin-bottom: 15px; font-size: 1rem; }
.social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; padding: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; transition: all 0.3s ease; text-align: center; }
.social-links a:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 85, 255, 0.3); }
.footer-copyright { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.04); color: #555; font-size: 0.8rem; }

/* =========================================
   ۱۸. ناوبری موبایل و انطباق ابعاد (Responsive)
========================================= */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: none; z-index: 1000; }

@media (max-width: 768px) {
  body { padding-bottom: 75px; }
  .nav-links { display: none; }
  .nav-container { padding: 10px 20px; }
  .section-title-container h2 { font-size: 1.7rem; }
  .gallery-top { height: 280px; }
  .gallery-thumbs .swiper-slide { height: 65px; }
  .main-footer { margin: 40px 15px 95px 15px; }
  .main-huge-logo { max-width: 250px; }
  .modern-navbar { height: 55px; }
  .modern-navbar .logo img { height: 30px; }
  
  .bottom-nav {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
  }
  
  .nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: #777; text-decoration: none; font-size: 11px; font-weight: 700; transition: all 0.3s ease;
  }
  
  .nav-item svg { width: 22px; height: 22px; fill: currentColor; margin-bottom: 4px; transition: all 0.3s ease; }
  .nav-item.active, .nav-item:hover { color: var(--brand-cyan); text-shadow: 0 0 8px rgba(0, 210, 255, 0.4); }
  .nav-item.active svg, .nav-item:hover svg { transform: translateY(-2px) scale(1.05); }
  
  button#logout-btn { font-size: 11px; }
  button#logout-btn svg { width: 22px; height: 22px; }
}

button#logout-btn {
  appearance: none; -webkit-appearance: none; background: transparent !important;
  border: none !important; padding: 0; margin: 0; outline: none; font-family: inherit;
  color: #888; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: all 0.3s ease; font-size: 13px; font-weight: 700;
}
button#logout-btn svg { width: 24px; height: 24px; fill: currentColor; margin-bottom: 4px; transition: all 0.3s ease; }
button#logout-btn:hover { color: #ff4757 !important; text-shadow: 0 0 12px rgba(255, 71, 87, 0.6); }
button#logout-btn:hover svg { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 8px rgba(255, 71, 87, 0.5)); }

/* =========================================
   ۱۹. مودال استوری‌ها
========================================= */
.story-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9); z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(5px);
}
.story-modal .modal-content img { max-width: 90vw; max-height: 90vh; border-radius: 15px; object-fit: contain; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--brand-cyan); }

/* =========================================
   ۲۰. بخش مفهومی (The Designer's Eye)
========================================= */
.conceptual-art-section {
  width: 100%; min-height: 40vh; display: flex; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 60%); margin-bottom: 40px;
}
.conceptual-container { width: 100%; max-width: 1000px; display: flex; justify-content: center; padding: 0 20px; }
.concept-svg { width: 100%; height: auto; max-height: 500px; drop-shadow: 0 0 30px rgba(0, 0, 0, 0.8); }

.concept-line, .concept-line-reverse { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawInfinity 8s linear infinite; }
.concept-line-reverse { animation-direction: reverse; animation-duration: 10s; }
@keyframes drawInfinity { 0% { stroke-dashoffset: 1000; } 100% { stroke-dashoffset: 0; } }

.iris-spin { transform-origin: center; animation: spinIris 15s linear infinite; }
@keyframes spinIris { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.eye-pulse { transform-origin: center; animation: pulseEye 4s ease-in-out infinite alternate; }
@keyframes pulseEye { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

.shape-float-1 { animation: floatShape 6s ease-in-out infinite alternate, spinIris 20s linear infinite; transform-origin: 150px 105px; }
.shape-float-2 { animation: floatShape 5s ease-in-out infinite alternate-reverse, spinIris 15s linear infinite reverse; transform-origin: 640px 240px; }
.shape-float-3 { animation: floatShape 7s ease-in-out infinite alternate; transform-origin: 200px 280px; }
@keyframes floatShape { 0% { transform: translateY(0px); } 100% { transform: translateY(-25px); } }

.node-pulse { animation: nodeBlink 2s infinite; }
@keyframes nodeBlink {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); filter: drop-shadow(0 0 5px var(--brand-cyan)); }
}

@media (max-width: 768px) { .conceptual-art-section { min-height: 30vh; } }

/* =========================================
   پس‌زمینه SVG پویا با افکت محو شوندگی
========================================= */
.dynamic-svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 74vh; /* این مقدار یعنی 70 درصد از ارتفاع اولیه صفحه را می‌پوشاند */
  z-index: 0; /* پشت تمام المان‌ها قرار می‌گیرد */
  pointer-events: none; /* باعث می‌شود جلوی کلیک شدن دکمه‌ها را نگیرد */
  
  /* جادوی اصلی: محو شدن تدریجی تصویر در پایین */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  overflow: hidden;
}
transform: translateZ(0);
  will-change: transform;
}
.dynamic-svg-background svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
/* --- انیمیشن موج‌ها --- */
.svg-wave {
  transform-origin: center;
}

.wave-slow {
  animation: waveMotion 18s ease-in-out infinite alternate;
}

.wave-fast {
  animation: waveMotion 12s ease-in-out infinite alternate-reverse;
}

@keyframes waveMotion {
  0% { transform: scale(1) translate(0, 0) skewX(0deg); }
  100% { transform: scale(1.1) translate(-20px, 15px) skewX(2deg); }
}

/* --- انیمیشن ذرات معلق (Particles) --- */
.svg-particle {
  opacity: 0.4;
}

.p-1 { animation: floatParticle 8s ease-in-out infinite alternate; }
.p-2 { animation: floatParticle 12s ease-in-out infinite alternate-reverse; }
.p-3 { animation: floatParticle 6s ease-in-out infinite alternate; }

@keyframes floatParticle {
  0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.3; }
  50% { opacity: 0.6; filter: drop-shadow(0 0 20px var(--brand-cyan)); }
  100% { transform: translateY(-40px) translateX(20px) scale(1.2); opacity: 0.3; }
}
/* =========================================
   بخش خدمات اصلی (Services Cards)
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* نمایش ستونی برای موبایل */
  gap: 30px;
  margin-top: 30px;
}

/* نمایش ۳ ستونه برای تبلت‌های بزرگ و دسکتاپ */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px;
  padding: 40px 25px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden; /* برای جلوگیری از بیرون زدن روبان VIP */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15) !important;
}

/* استایل آیکون‌های وکتور */
.card-icon {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.1), rgba(0, 210, 255, 0.1));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.2);
  transition: all 0.4s ease;
}

.service-card:hover .card-icon {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
  transform: scale(1.1);
}

.card-icon svg {
  width: 35px;
  height: 35px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 800;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* =========================================
   استایل‌های اختصاصی کارت‌ها
========================================= */

/* کارت ویژه (طراحی سایت) */
.special-card {
  border-color: rgba(0, 210, 255, 0.3) !important;
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.05) 0%, rgba(255,255,255,0.01) 100%) !important;
}

.vip-ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  background: linear-gradient(45deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 45px;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
  letter-spacing: 0.5px;
  z-index: 2;
}

.card-feature-box {
  background: rgba(0, 210, 255, 0.08);
  border-right: 3px solid var(--brand-cyan);
  padding: 12px;
  border-radius: 8px 0 0 8px;
  font-size: 0.8rem;
  color: #ddd;
  text-align: right;
  width: 100%;
  margin-top: auto; /* هول دادن باکس به پایین کارت */
  line-height: 1.7;
}

.card-feature-box strong {
  color: var(--brand-cyan);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

/* افکت مراحل در کارت دوم (اپلیکیشن) */
.app-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.app-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #fff;
  gap: 6px;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.4s ease;
}

.service-card:hover .app-steps .step {
  transform: translateY(0);
  opacity: 1;
}

/* تاخیر پله‌ای برای نمایش مراحل */
.service-card:hover .app-steps .step:nth-child(1) { transition-delay: 0.1s; }
.service-card:hover .app-steps .step:nth-child(3) { transition-delay: 0.2s; }
.service-card:hover .app-steps .step:nth-child(5) { transition-delay: 0.3s; }

.app-steps .step span {
  width: 24px;
  height: 24px;
  background: var(--brand-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.step-line {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(-8px);
}

/* پر شدن خطوط اتصال دهنده */
.service-card:hover .step-line::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: var(--brand-cyan);
  animation: fillLine 0.5s ease forwards;
}

/* چون جهت سایت rtl هست، انیمیشن باید از راست به چپ پر بشه */
.service-card:hover .step-line:nth-child(2):after { animation-delay: 0.15s; }
.service-card:hover .step-line:nth-child(4):after { animation-delay: 0.3s; }

@keyframes fillLine {
  0% { width: 0; }
  100% { width: 100%; }
}
/* =========================================
   متغیرهای جدید پالت رنگ سایبرپانک خدمات
========================================= */
:root {
  --color-web: #00d2ff;     /* فیروزه‌ای */
  --color-app: #a855f7;     /* بنفش */
  --color-social: #ff007a;  /* صورتی داغ */
}

/* =========================================
   بخش خدمات اصلی (Services Cards Layout)
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
  perspective: 1000px; /* ایجاد عمق سه‌بعدی */
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: rgba(10, 15, 25, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px;
  padding: 45px 25px 35px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

/* --- ساخت هاله نوری شناور پشت کارت‌ها (Ambient Glow) --- */
.service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(80px);
  opacity: 0.15;
  transition: all 0.6s ease;
}

/* اعمال رنگ هاله‌ها براساس کلاس کارت */
.card-web::before { background: var(--color-web); }
.card-app::before { background: var(--color-app); }
.card-social::before { background: var(--color-social); }

/* افکت هاور عمومی کارت‌ها */
.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* فعال شدن و درخشش شدید هاله در زمان هاور */
.service-card:hover::before {
  width: 220px;
  height: 220px;
  opacity: 0.35;
  filter: blur(60px);
}

/* --- انیمیشن شناور شدن آیکون‌ها --- */
.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  animation: floatIcon 4s ease-in-out infinite; /* آیکون شناور زنده */
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.card-icon svg {
  width: 38px;
  height: 38px;
  transition: transform 0.5s ease;
}

.service-card:hover .card-icon svg {
  transform: scale(1.1) rotate(5deg);
}

/* اختصاصی‌سازی استایل‌های هاور رنگی کارت‌ها */

/* ۱. وب و بازی (فیروزه‌ای) */
.card-web:hover {
  border-color: rgba(0, 210, 255, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15) !important;
}
.card-web .card-icon {
  background: rgba(0, 210, 255, 0.05);
  color: var(--color-web);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}
.card-web:hover .card-icon {
  background: var(--color-web);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
}

/* ۲. اپلیکیشن (بنفش) */
.card-app:hover {
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15) !important;
}
.card-app .card-icon {
  background: rgba(168, 85, 247, 0.05);
  color: var(--color-app);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}
.card-app:hover .card-icon {
  background: var(--color-app);
  color: #fff;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

/* ۳. سوشال مدیا (صورتی) */
.card-social:hover {
  border-color: rgba(255, 0, 122, 0.4) !important;
  box-shadow: 0 15px 35px rgba(255, 0, 122, 0.15) !important;
}
.card-social .card-icon {
  background: rgba(255, 0, 122, 0.05);
  color: var(--color-social);
  box-shadow: 0 0 20px rgba(255, 0, 122, 0.1);
}
.card-social:hover .card-icon {
  background: var(--color-social);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 122, 0.4);
}

/* --- تایپوگرافی کارت‌ها --- */
.service-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* =========================================
   جزئیات داینامیک و جذاب کارت‌ها
========================================= */

/* روبان ویژه با انیمیشن شاین (برق زدن) */
.vip-ribbon {
  position: absolute;
  top: 22px;
  right: -42px;
  background: linear-gradient(135deg, #0055ff, var(--color-web));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 45px;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  z-index: 2;
  overflow: hidden;
}

.vip-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-30deg);
  animation: shinySweep 4s infinite ease-in-out;
}

@keyframes shinySweep {
  0% { left: -100px; }
  20%, 100% { left: 150px; }
}

.card-feature-box {
  background: rgba(0, 210, 255, 0.06);
  border-right: 3px solid var(--color-web);
  padding: 15px;
  border-radius: 10px 0 0 10px;
  font-size: 0.8rem;
  color: #e0e0e0;
  text-align: right;
  width: 100%;
  margin-top: auto;
  line-height: 1.8;
}

.card-feature-box strong {
  color: var(--color-web);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* استایل داینامیک مراحل برای کارت اپلیکیشن */
.app-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #b0b0b0;
  gap: 6px;
  transform: translateY(10px);
  opacity: 0.5;
  transition: all 0.5s ease;
}

.service-card:hover .app-steps .step {
  transform: translateY(0);
  opacity: 1;
  color: #fff;
}

.service-card:hover .app-steps .step span {
  background: var(--color-app);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  color: #fff;
}

.app-steps .step span {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  font-weight: 800;
  font-size: 0.8rem;
  transition: all 0.5s ease;
}

.step-line {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  transform: translateY(-8px);
}

.service-card:hover .step-line::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: var(--color-app);
  animation: fillAppLine 0.6s ease forwards;
}

.service-card:hover .step-line:nth-child(2):after { animation-delay: 0.1s; }
.service-card:hover .step-line:nth-child(4):after { animation-delay: 0.25s; }

@keyframes fillAppLine {
  0% { width: 0; }
  100% { width: 100%; }
}
