/* فونت در اینجا لود نمی‌شه — در HTML لینک می‌شه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* بهینه‌سازی رندر فونت */
body {
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* هدر تصویری — فقط در index.html استفاده شود */
header {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), 
    url('header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
  opacity: 0;
  animation: fadeInDown 1s forwards 0.3s;
}

.subtitle {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 24px;
  color: #cbd5e1;
  font-weight: 450;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.6s;
}

.btn-primary {
  background: #ea580c;
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 650;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1s forwards 0.9s;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
  background: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(234, 88, 12, 0.5);
}

.container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.about-section {
  background: #1e293b;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.appear {
  opacity: 1;
  transform: translateY(0);
}

.about-section h2 {
  color: #f97316;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
}

.about-section p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-weight: 450;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.appear {
  opacity: 1;
  transform: translateY(0);
}

.info-box {
  background: #1e293b;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #334155;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.info-box h3 {
  color: #f97316;
  margin-bottom: 16px;
  font-weight: 650;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #94a3b8;
  background: #0b111c;
  margin-top: 60px;
  opacity: 0;
  animation: fadeIn 1.2s forwards 1.2s;
  font-weight: 450;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ریسپانسیو */
@media (max-width: 600px) {
  header {
    min-height: 300px;
    padding: 60px 15px;
  }
  h1 {
    font-size: 28px;
  }
  .subtitle {
    font-size: 16px;
  }
  .btn-primary {
    padding: 12px 28px;
    font-size: 16px;
  }
}