* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2c5aa0;
}

/* Header Contact */
.header-contact {
  display: flex;
  gap: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(45deg, #2c5aa0, #667eea);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.phone-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(44, 90, 160, 0.85),
      rgba(118, 75, 162, 0.85)
    ),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80")
      center/cover no-repeat;

  /* Fallback background */
  background-color: #2c5aa0;

  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  top: 0;
  left: 0;
  z-index: 1;
}

/* Animated floating elements */
.hero::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: float 20s infinite linear;
  top: -50%;
  left: -50%;
  z-index: 1;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #e8f4f8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4),
    0 0 0 0 rgba(255, 107, 107, 0.5);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6),
    0 0 20px rgba(255, 107, 107, 0.4);
}

/* Hero Phones */
.hero-phones {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-phone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-phone-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Problem Section */
.problem-section {
  background: white;
  padding: 5rem 0;
  position: relative;
}

.problem-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  transform: translateY(-50px);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2c5aa0;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  border-radius: 2px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transform: translateY(0);
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.problem-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.problem-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

/* Inline Phones */
.inline-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.inline-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.inline-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, #b87dca 0%, #532e33 100%);
  padding: 5rem 0;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

/* Services Section */
.services-section {
  background: white;
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border-left: 5px solid #2c5aa0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Services Contact */
.services-contact {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-contact h3 {
  color: #2c5aa0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #2c5aa0, #667eea);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
}

.service-phone:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 90, 160, 0.5);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(44, 90, 160, 0.95),
    rgba(238, 90, 36, 0.95)
  );
  padding: 4rem 0;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* CTA Social Section - جایگزین شماره تماس */
.cta-social {
  margin: 3rem 0;
}

.cta-social h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: white;
}

.cta-social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cta-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
  backdrop-filter: blur(15px);
  color: white;
  min-width: 200px;
  justify-content: center;
}

.cta-social-btn.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  border-color: rgba(255, 255, 255, 0.5);
  animation: pulse-instagram 3s infinite;
}

.cta-social-btn.telegram {
  background: linear-gradient(45deg, #0088cc, #229ed9);
  border-color: rgba(255, 255, 255, 0.5);
  animation: pulse-telegram 3s infinite;
  animation-delay: 1s;
}

.cta-social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.cta-social-btn i {
  font-size: 1.5rem;
}

.cta-social-desc {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
}

/* انیمیشن‌های خاص برای هر شبکه اجتماعی */
@keyframes pulse-instagram {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 29, 29, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(253, 29, 29, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 29, 29, 0);
  }
}

@keyframes pulse-telegram {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* بخش تماس فضای بیشتری می‌گیرد */
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-section {
  flex: 2; /* فضای بیشتر برای بخش تماس */
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.contact-info i {
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #ffd700;
}

.address-info {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.address-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-label {
  font-weight: 600;
  color: #ffd700;
}

.address-full {
  line-height: 1.5;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffd700;
}

.footer-emergency h4 {
  color: #ff6b6b !important;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-phone:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  opacity: 0.7;
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-phone {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  animation: bounce 2s infinite;
}

.floating-phone-2 {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
  animation-delay: 0.5s;
}

.floating-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.floating-phone-2:hover {
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Better performance on mobile */
    min-height: 80vh;
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-contact {
    display: none;
  }

  .hero-phones {
    flex-direction: column;
    align-items: center;
  }

  .hero-phone-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .inline-phones {
    flex-direction: column;
    align-items: center;
  }

  .service-phones {
    flex-direction: column;
    align-items: center;
  }

  .floating-contact {
    bottom: 10px;
    right: 10px;
  }

  .floating-phone {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* Footer Responsive */
  .footer-content {
    grid-template-columns: 1fr; /* در موبایل یک ستونه */
    gap: 2rem;
    text-align: center;
  }

  .contact-info {
    justify-content: center;
  }

  .address-info {
    align-items: center;
    text-align: center;
  }

  .address-text {
    align-items: center;
    text-align: center;
  }

  .address-full {
    font-size: 0.9rem;
  }

  /* CTA Social در موبایل */
  .cta-social-links {
    flex-direction: column;
    align-items: center;
  }

  .cta-social-btn {
    width: 100%;
    max-width: 300px;
  }

  .cta-social h3 {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  /* Additional mobile styles */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-contact {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .problem-section {
    padding: 3rem 0;
  }

  .services-section {
    padding: 3rem 0;
  }

  .features-section {
    padding: 3rem 0;
  }

  .cta-section {
    padding: 3rem 0;
  }
}

/* تبلت سایز */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: 2fr 1fr; /* دو ستونه در تبلت */
    gap: 2rem;
  }

  .footer-section:last-child {
    grid-column: span 2;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .services-contact h3 {
    font-size: 1.2rem;
  }

  .problem-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-size: cover;
  }
}

/* Landscape orientation on mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-phones {
    margin-bottom: 1.5rem;
  }
}

/* Print styles */
@media print {
  .header {
    position: static;
    box-shadow: none;
  }

  .floating-contact {
    display: none;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .bounce,
  .fade-in {
    animation: none;
  }

  .cta-social-btn {
    animation: none;
  }

  body {
    background: white;
  }

  .hero,
  .features-section,
  .cta-section {
    background: white;
    color: black;
  }

  .problem-card,
  .feature-card {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
}

/* Focus styles for accessibility */
.phone-link:focus,
.hero-phone-btn:focus,
.service-phone:focus,
.cta-social-btn:focus,
.inline-phone:focus,
.floating-phone:focus,
.cta-button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }

  .bounce,
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cta-social-btn {
    animation: none;
  }

  .floating-phone {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
