/* Reset و تنظیمات پایه */
:root {
  --primary-blue: #1e3c72;
  --secondary-blue: #2a5298;
  --primary-orange: #F59F00;
  --secondary-orange: #FFB01F;
  --light-orange: #ffd8b8;
  --dark-text: #333;
  --medium-text: #555;
  --light-text: #777;
  --light-bg: #fff;
  --white: #fff;
  --light-gray: #f0f0f0;
  --border-color: #e0e0e0;
  --repair-color: #4a89dc;
  --product-color: #ff8c42;
  --emergency-red: #e63946;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Vazir, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.8;
  position: relative;
}

/* هدر صفحه */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-orange);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* استایل لوگوی هدر */
.logo-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.header-logo {
  width: 100%;
  height: 100px;
  transition: transform 0.7s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-logo:hover {
  transform: rotate(360deg) scale(1.1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 176, 31, 0.7));
  }
  70% {
    filter: drop-shadow(0 0 10px rgba(255, 176, 31, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 176, 31, 0));
  }
}

/* کانتینر اصلی */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* بخش معرفی خدمات */
.services-intro {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.services-intro h2 {
  margin-bottom: 1.5rem;
  color: var(--secondary-blue);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.services-intro h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
  border-radius: 3px;
}

.services-intro p {
  margin-bottom: 2rem;
  color: var(--medium-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--light-gray);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.highlight-card i {
  font-size: 2.5rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.highlight-card p {
  color: var(--light-text);
  font-size: 0.9rem;
}

/* بخش‌های خدمات */
.mobile-repair,
.laptop-repair,
.computer-repair,
.product-sales {
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-repair {
  background: linear-gradient(135deg, #f5f9ff 0%, #e6f0ff 100%);
  border-top: 4px solid var(--repair-color);
}

.laptop-repair {
  background: linear-gradient(135deg, #f5f9ff 0%, #e6f0ff 100%);
  border-top: 4px solid var(--repair-color);
}

.computer-repair {
  background: linear-gradient(135deg, #f5f9ff 0%, #e6f0ff 100%);
  border-top: 4px solid var(--repair-color);
}

.product-sales {
  background: linear-gradient(135deg, #fff9f5 0%, #ffefe6 100%);
  border-top: 4px solid var(--primary-orange);
}

.mobile-repair h2,
.laptop-repair h2,
.computer-repair h2,
.product-sales h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-blue);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.mobile-repair h2::before,
.laptop-repair h2::before,
.computer-repair h2::before,
.product-sales h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
  border-radius: 3px;
}

.mobile-repair p,
.laptop-repair p,
.computer-repair p,
.product-sales p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--medium-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-list,
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card,
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--light-gray);
}

.service-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.service-card img,
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.service-card h3,
.product-card h3 {
  padding: 1rem 1rem 0.5rem;
  color: var(--dark-text);
  text-align: center;
}

.service-card p,
.product-card p {
  padding: 0 1rem;
  color: var(--light-text);
  font-size: 0.9rem;
  text-align: center;
}

.service-card ul {
  padding: 1rem;
  list-style-type: none;
  text-align: right;
  direction: rtl;
}

.service-card ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-right: 1.5rem;
  color: var(--medium-text);
}

.service-card ul li:before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--repair-color);
}

.product-card ul li:before {
  background: var(--primary-orange);
}

.service-btn,
.product-btn {
  display: block;
  text-align: center;
  padding: 0.8rem 1.8rem;
  margin: 1.5rem auto;
  background: linear-gradient(135deg, var(--repair-color) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  max-width: 200px;
}

.product-btn {
  background: linear-gradient(135deg, var(--product-color) 0%, #ff6b00 100%);
}

.service-btn:hover,
.product-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* فرآیند خدمات */
.service-process {
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.service-process h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-blue);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.service-process h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
  border-radius: 3px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.process-step {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--light-gray);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
  font-size: 1rem;
}

.process-step p {
  color: var(--light-text);
  font-size: 0.8rem;
}

/* ضمانت خدمات */
.service-guarantee {
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: var(--white);
  border-top: 4px solid var(--primary-orange);
}

.service-guarantee h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-blue);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.service-guarantee h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
  border-radius: 3px;
}

.guarantee-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.guarantee-text {
  flex: 1;
  min-width: 300px;
}

.guarantee-text p {
  margin-bottom: 1rem;
  color: var(--medium-text);
  text-align: right;
  direction: rtl;
}

.guarantee-text ul {
  list-style-type: none;
  margin-top: 1rem;
  text-align: right;
  direction: rtl;
}

.guarantee-text ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-right: 1.5rem;
  color: var(--medium-text);
}

.guarantee-text ul li:before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-orange);
}

.guarantee-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.guarantee-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--light-gray);
}

/* خدمات اورژانسی - قرمز */
.emergency-service {
  background: linear-gradient(135deg, var(--emergency-red) 0%, #c1121f 100%);
  color: var(--white);
  padding: 2rem 1rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.emergency-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--white);
}

.emergency-service h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
}

.emergency-service p {
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.emergency-btn {
  display: inline-block;
  background: var(--white);
  color: var(--emergency-red);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.emergency-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* فوتر */
.site-footer {
  background: linear-gradient(135deg, #1a2a4a 0%, #1e3c72 100%);
  color: #fff;
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59F00, #FFB01F);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  padding: 1rem;
  position: relative;
}

.footer-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1rem;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-section:last-child::after {
  display: none;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  position: relative;
  color: #FFB01F;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #F59F00, #FFB01F);
}

/* استایل بخش تماس */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-item i {
  color: #FFB01F;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #FFB01F;
  transform: translateY(-3px);
}

/* استایل لینک های سریع */
.quick-links ul {
  list-style: none;
}

.quick-links li {
  margin-bottom: 0.8rem;
}

.quick-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  padding: 0.3rem 0;
  position: relative;
}

.quick-links a::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #FFB01F;
  transition: width 0.3s;
}

.quick-links a:hover {
  color: #FFB01F;
  padding-right: 10px;
}

.quick-links a:hover::before {
  width: 8px;
}

/* استایل ساعات کاری */
.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hours-item span:first-child {
  color: #ddd;
}

.hours-item span:last-child {
  font-weight: bold;
}

.emergency-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(255, 176, 31, 0.1);
  border-radius: 5px;
  color: #FFB01F;
}

.emergency-contact i {
  font-size: 1.2rem;
}

/* استایل خبرنامه */
.newsletter p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #ddd;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.newsletter-form input {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: Vazir, sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  outline: 1px solid #FFB01F;
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #F59F00, #FFB01F);
  color: #1a2a4a;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: Vazir, sans-serif;
}

.newsletter-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 159, 0, 0.3);
}

.footer-logo {
  max-width: 150px;
  margin-top: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s;
}

.footer-logo:hover {
  opacity: 1;
  transform: rotate(5deg) scale(1.05);
}

/* استایل کپی رایت */
.copyright {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.copyright p:first-child {
  margin-bottom: 0.5rem;
}

/* دکمه‌های شناور */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: float 3s ease-in-out infinite;
}

.floating-buttons.right {
  right: 2rem;
}

.floating-buttons.left {
  left: 2rem;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  font-size: 1rem;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn i {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 50%;
}

.btn-text {
  font-weight: bold;
  font-size: 0.95rem;
}

/* انیمیشن‌ها */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

/* منوی همبرگری */
.hamburger-menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

#menu-toggle {
  opacity: 0;
  position: absolute;
}

#menu-toggle:checked ~ .menu-btn > span {
  transform: rotate(45deg);
}
#menu-toggle:checked ~ .menu-btn > span::before {
  top: 0;
  transform: rotate(0);
}
#menu-toggle:checked ~ .menu-btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu-toggle:checked ~ .menu-box {
  visibility: visible;
  right: 0;
}

.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 1000;
}

.menu-btn > span,
.menu-btn > span::before,
.menu-btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-orange);
  transition-duration: .25s;
}
.menu-btn > span::before {
  content: '';
  top: -8px;
}
.menu-btn > span::after {
  content: '';
  top: 8px;
}

.menu-box {
  display: block;
  position: fixed;
  visibility: hidden;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  margin: 0;
  padding: 80px 0;
  list-style: none;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  box-shadow: -1px 0px 6px rgba(0, 0, 0, .2);
  transition-duration: .25s;
  z-index: 999;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 15px 25px;
  margin: 5px 10px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border-right: 3px solid transparent;
  border-radius: 5px;
}

.menu-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(-5px);
  border-right-color: var(--primary-orange);
  color: var(--light-orange);
}

/* رسپانسیو */
@media (max-width: 768px) {
  .service-list,
  .product-list {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-step {
    max-width: 100%;
    width: 100%;
  }
  
  .floating-buttons {
    bottom: 1rem;
    gap: 0.7rem;
  }

  .floating-buttons.right {
    right: 1rem;
  }

  .floating-buttons.left {
    left: 1rem;
  }

  .floating-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .floating-btn i {
    font-size: 1.1rem;
    padding: 0.4rem;
  }

  .btn-text {
    font-size: 0.85rem;
  }
  
  .menu-box {
    width: 250px;
  }
  
  .guarantee-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .highlight-card,
  .service-card,
  .product-card {
    padding: 1rem;
  }
  
  .service-btn,
  .product-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .emergency-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}
