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

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 38, 60, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);
  
  --primary: #00e5ff;
  --primary-hover: #33ebff;
  --primary-glow: 0 0 25px rgba(0, 229, 255, 0.45);
  
  --accent: #ff9100;
  --accent-glow: 0 0 20px rgba(255, 145, 0, 0.4);
  
  --purple: #8a2be2;
  --purple-glow: 0 0 25px rgba(138, 43, 226, 0.45);
  
  --success: #00e676;
  --danger: #ff1744;
  --warning: #ffab00;
  
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(138, 43, 226, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 145, 0, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

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

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float { animation: floatAnimation 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.animate-slide-up { animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Typography & Glows */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.text-cyan { color: var(--primary); }
.text-amber { color: var(--accent); }
.text-purple { color: var(--purple); }

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 229, 255, 0.1);
}

.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
  box-shadow: var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: var(--primary-glow);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00b0ff 100%);
  color: #050b14;
  box-shadow: var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f57c00 100%);
  color: #000;
  box-shadow: var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 145, 0, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 229, 255, 0.05);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-xl);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 900;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Graphic Interactive Phone */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  height: 580px;
  background: #151b28;
  border: 4px solid #2d3748;
  border-radius: 45px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  background: #0d111a;
  height: 100%;
  border-radius: 35px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.circuit-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 255, 0.15) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.6;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
  animation: scanLine 3s linear infinite;
}

/* Pipeline 7-Step Workflow */
.pipeline-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
}

.step-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 var(--radius-lg) 0;
}

.step-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Brands & Services */
.services-section {
  padding: 60px 0;
}

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.brand-chip {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.brand-chip:hover, .brand-chip.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Forms & Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--danger);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  background: rgba(15, 22, 38, 0.95);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Tracking Timeline Page */
.track-card {
  max-width: 750px;
  margin: 40px auto;
  padding: 35px;
}

.timeline {
  position: relative;
  margin: 30px 0;
  padding-right: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 12px;
  width: 3px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  right: -30px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
  box-shadow: var(--primary-glow);
}

.timeline-item.completed .timeline-dot {
  border-color: var(--success);
  background: var(--success);
  color: #000;
}

/* Reviews & Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.review-card {
  padding: 24px;
}

.stars {
  color: #ffb300;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.blog-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-thumb {
  transform: scale(1.05);
}

.blog-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Floating Live Chat Widget */
.chat-widget-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--primary-glow);
  z-index: 999;
  border: none;
  transition: var(--transition-smooth);
}

.chat-widget-btn:hover {
  transform: scale(1.1) rotate(-5deg);
}

.chat-box {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 380px;
  height: 520px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-box.active {
  display: flex;
}

.chat-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-bottom-left-radius: 2px;
}

.chat-bubble.admin {
  align-self: flex-end;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-right-radius: 2px;
}

.chat-input-row {
  padding: 12px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

/* Admin Dashboard */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pending { background: rgba(255, 171, 0, 0.15); color: var(--warning); border: 1px solid rgba(255, 171, 0, 0.3); }
.badge-approved { background: rgba(0, 229, 255, 0.15); color: var(--primary); border: 1px solid rgba(0, 229, 255, 0.3); }
.badge-shipped { background: rgba(138, 43, 226, 0.15); color: #c084fc; border: 1px solid rgba(138, 43, 226, 0.3); }
.badge-repairing { background: rgba(255, 145, 0, 0.15); color: var(--accent); border: 1px solid rgba(255, 145, 0, 0.3); }
.badge-completed { background: rgba(0, 230, 118, 0.15); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.3); }

/* Footer */
.footer {
  margin-top: 100px;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 11, 18, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 20px; }
  .phone-mockup-wrapper { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { height: 70px; }
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .chat-box { width: calc(100vw - 40px); left: 20px; right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
