/* =============================================
   MiliSoft — Dark Purple Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* Ensure font-display:swap for CLS/performance */
@font-face {
  font-family: 'Vazirmatn';
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bg-primary:    #07071a;
  --bg-secondary:  #0d0d26;
  --bg-card:       #11112b;
  --bg-card-h:     #181838;
  --purple-dark:   #2d1b69;
  --purple-mid:    #5b21b6;
  --purple-main:   #7c3aed;
  --purple-light:  #a78bfa;
  --purple-glow:   rgba(124,58,237,0.25);
  --accent:        #c69c6c;
  --text-primary:  #f0efff;
  --text-secondary:#c4b5fd;
  --text-muted:    #7c7ca8;
  --border:        rgba(124,58,237,0.18);
  --border-h:      rgba(167,139,250,0.45);
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 32px rgba(124,58,237,0.15);
  --shadow-h:      0 8px 48px rgba(124,58,237,0.35);
  --transition:    0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

html[lang="fa"] { direction: rtl; }
html[lang="en"] { direction: ltr; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Language toggle visibility ---------- */
html[lang="fa"] .en-text { display: none !important; }
html[lang="en"] .fa-text { display: none !important; }
html[lang="en"] .en-text { display: inline; }
html[lang="fa"] .fa-text { display: inline; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, #4c1d95);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.bg-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #5b21b6, #1e1b4b);
  bottom: -150px; right: -100px;
  animation-delay: -5s;
}
.bg-orb:nth-child(3) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #a78bfa, #7c3aed);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.05); }
  66%      { transform: translate(-20px,30px) scale(0.97); }
}

/* Grid overlay */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(7,7,26,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(7,7,26,0.95);
  box-shadow: var(--shadow);
}

.navbar-logo img { height: 40px; }

.navbar-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-main), var(--purple-light));
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 2px;
}
html[lang="fa"] .nav-link::after { left: 0; right: 0; }

.nav-link:hover, .nav-link.active { color: var(--purple-light); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.navbar-actions {
  display: flex; align-items: center; gap: 0.75rem;
}

/* Language toggle */
.lang-btn {
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  color: var(--purple-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--purple-light);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--purple-light);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  background: rgba(13,13,38,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  flex-direction: column; gap: 1.25rem;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateY(0); display: flex; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 5% 60px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-main);
  box-shadow: 0 0 10px var(--purple-main);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.15s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #c4b5fd 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%,100%{ background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.9s 0.45s ease both;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,58,237,0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-h);
  color: var(--purple-light);
}
.btn-outline:hover {
  background: rgba(124,58,237,0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--purple-glow);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* =============================================
   SECTION LAYOUT
   ============================================= */
section { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--purple-main), var(--purple-light));
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 100px 0; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
}

/* Product cards grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-h);
  transform: translateY(-8px);
  box-shadow: 0 12px 50px rgba(124,58,237,0.3);
}

.product-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-img { transform: scale(1.04); }

.product-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--purple-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
}

.product-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  color: var(--purple-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.product-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem;
}

/* Feature list */
.feature-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin: 1rem 0;
}
.feature-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.feature-item::before {
  content: '✦';
  color: var(--purple-main);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Icon cards for services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.25);
}

.service-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   STATS
   ============================================= */
.stats-bar {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(45,27,105,0.6), rgba(91,33,182,0.4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-left: 1px solid var(--border);
}
html[lang="fa"] .stat-item { border-left: none; border-right: 1px solid var(--border); }
html[lang="fa"] .stat-item:last-child { border-right: none; }
html[lang="en"] .stat-item:first-child { border-left: none; }

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* =============================================
   HERO SCROLL INDICATOR
   ============================================= */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6;
  animation: bounce 2.5s infinite;
}
.scroll-indicator span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--purple-light);
  border-bottom: 2px solid var(--purple-light);
  transform: rotate(45deg);
  border-radius: 2px;
}
@keyframes bounce {
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative; z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--purple-light);
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--purple-light); padding-inline-start: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}
.contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap; gap: 0.5rem;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative; z-index: 1;
  padding: 140px 5% 80px;
  text-align: center;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--purple-light); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb-sep { opacity: 0.4; }

/* =============================================
   PRODUCT DETAIL (products page)
   ============================================= */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.product-detail:last-of-type { border-bottom: none; }
.product-detail.reverse { direction: ltr; } /* flip for RTL design */
html[lang="fa"] .product-detail.reverse { direction: ltr; }
html[lang="en"] .product-detail.reverse { direction: rtl; }

.product-detail-images {
  position: relative;
}
.detail-img-main {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
}
.detail-img-thumb {
  position: absolute;
  bottom: -24px;
  width: 46%;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
  box-shadow: var(--shadow-h);
}
html[lang="fa"] .detail-img-thumb { left: -24px; }
html[lang="en"] .detail-img-thumb { right: -24px; }

.product-detail-info {}
.product-detail-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  color: var(--purple-light);
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.product-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.product-detail-desc {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Screenshots gallery */
.screenshots {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem;
  margin-top: 2rem;
}
.screenshot-thumb {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.screenshot-thumb:hover {
  border-color: var(--border-h);
  transform: scale(1.04);
  box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(124,58,237,0.4);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid var(--border-h);
  color: var(--text-primary);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--purple-main); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 30px var(--purple-glow);
}

.about-name {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem;
}
.about-role {
  color: var(--purple-light); font-size: 0.9rem; margin-bottom: 1.25rem;
}

.skills-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem;
}
.skill-tag {
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
}

.timeline { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--purple-main);
  box-shadow: 0 0 12px var(--purple-main);
  flex-shrink: 0; margin-top: 5px;
}
.timeline-line {
  width: 2px; background: linear-gradient(to bottom, var(--purple-main), transparent);
  flex-shrink: 0;
}
.timeline-body {}
.timeline-year {
  font-size: 0.78rem; color: var(--purple-light);
  font-weight: 600; margin-bottom: 0.3rem;
}
.timeline-title { font-weight: 700; margin-bottom: 0.4rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-secondary); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.contact-info-label {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem;
}
.contact-info-value {
  font-weight: 600; font-size: 0.95rem;
  direction: ltr; text-align: start;
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-card iframe {
  width: 100%; height: 340px;
  border: none; display: block;
}
.map-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.map-address {
  font-size: 0.85rem; color: var(--text-secondary);
}

.social-links {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: var(--transition);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  cursor: pointer;
}
.social-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--border-h);
  color: var(--purple-light);
  transform: translateY(-2px);
}

/* =============================================
   ANIMATIONS (scroll reveal)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }

  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border: none; border-bottom: 1px solid var(--border); }

  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail.reverse { direction: unset !important; }
  .detail-img-thumb { display: none; }

  .about-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .screenshots { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   GLOW DIVIDER
   ============================================= */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-main), transparent);
  margin: 0;
}

/* Floating particles */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--purple-light);
  opacity: 0;
  animation: particleFloat var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

/* "Coming soon" badge */
.badge-soon {
  display: inline-block;
  background: rgba(198,156,108,0.12);
  border: 1px solid rgba(198,156,108,0.3);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}
