/* Font & Base Reset */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1, "pnum" 1;
}
body, * {
  font-family: 'Vazirmatn', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
}

/* Layout Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.main-nav ul.open {
  display: block;
}
.main-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  transition: color .3s;
}
.main-nav a:hover {
  color: #007BFF;
}
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Hero */
.hero {
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
  padding: 6rem 0;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  transition: background .3s;
}
.btn-primary:hover {
  background: #0056b3;
}

/* Services */
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.service-card h3 {
  margin-bottom: 1rem;
}

/* Portfolio */
.portfolio h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* About */
.about h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}
.about p {
  text-align: center;
  line-height: 1.6;
}

/* Contact */
.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

/* Footer */
.site-footer {
  background: #f8f9fa;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.site-footer a {
  text-decoration: none;
  margin: 0 0.5rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; gap: 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .container { max-width: 1000px; }
}
