    /* General Styles */
    @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap'); /* Using Vazirmatn for Persian text */

    :root {
      --primary-blue: #2C3E50;
      --light-gray: #F2F2F2;
      --white: #FFFFFF;
      --terracotta-orange: #E67E22;
      --deep-slate-green: #5F6B6F;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Vazirmatn', sans-serif;
      line-height: 1.6;
      color: var(--primary-blue);
      background-image:url("chat\ gpt1.png");
      direction: rtl; /* Right-to-left for Persian */
      text-align: right; /* Align text to the right */
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    a {
      color: var(--terracotta-orange);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    a:hover {
      color: var(--primary-blue);
    }

    ul {
      list-style: none;
    }

    h1, h2, h3, h4 {
      color: var(--primary-blue);
      margin-bottom: 15px;
    }

    h2 {
      font-size: 2.5em;
    }

    h3 {
      font-size: 2em;
    }

    p {
      margin-bottom: 15px;
    }

    .btn {
      display: inline-block;
      padding: 12px 25px;
      border-radius: 5px;
      font-weight: bold;
      text-align: center;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    .btn-primary {
      background-color: var(--terracotta-orange);
      color: var(--white);
    }

    .btn-primary:hover {
      background-color: var(--primary-blue);
      color: var(--white);
    }

    .btn-secondary {
      background-color: var(--primary-blue);
      color: var(--white);
      border: 2px solid var(--primary-blue);
    }

    .btn-secondary:hover {
      background-color: var(--white);
      color: var(--primary-blue);
    }

    /* Header */
    .main-header {
      background-color: var(--primary-blue);
      color: var(--white);
      padding: 20px 0;
      border-bottom: 5px solid var(--terracotta-orange);
    }

    .main-header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .main-header .logo h1 {
      color: var(--white);
      font-size: 1.8em;
      margin-bottom: 0;
    }

    .main-header .main-nav ul {
      display: flex;
    }

    .main-header .main-nav ul li {
      margin-left: 20px;
    }

    .main-header .main-nav ul li a {
      color: var(--white);
      font-weight: bold;
      padding: 5px 0;
      position: relative;
    }

    .main-header .main-nav ul li a::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 3px;
      background-color: var(--terracotta-orange);
      transition: width 0.3s ease;
    }

    .main-header .main-nav ul li a:hover::after,
    .main-header .main-nav ul li a.active::after {
      width: 100%;
    }

    /* Hero Section */
    .hero-section {
      background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://via.placeholder.com/1920x800/2C3E50/E67E22?text=ساختمان+مدرن') no-repeat center center/cover;
      color: var(--white);
      padding: 100px 0;
      text-align: center;
    }

    .hero-section h2 {
      color: var(--white);
      font-size: 3.5em;
      margin-bottom: 20px;
    }

    .hero-section p {
      font-size: 1.3em;
      margin-bottom: 30px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Section Padding */
    section {
      padding: 80px 0;
    }

    section:nth-of-type(even) {
      background-color: var(--white);
    }

    /* About Us Section */
    .about-section h3 {
      text-align: center;
      margin-bottom: 40px;
    }

    .about-section p {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 50px auto;
    }

    .about-items {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      gap: 30px;
    }

    .about-item {
      background-color: var(--white);
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      text-align: center;
      flex: 1;
      min-width: 280px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .about-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .about-item i {
      font-size: 3.5em;
      color: var(--terracotta-orange);
      margin-bottom: 20px;
    }

    .about-item h4 {
      font-size: 1.5em;
      color: var(--primary-blue);
      margin-bottom: 10px;
    }

    /* Services Section */
    .services-section {
      background-color: var(--light-gray);
    }

    .services-section h3 {
      text-align: center;
      margin-bottom: 40px;
    }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }

    .service-item {
      background-color: var(--white);
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .service-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .service-item i {
      font-size: 3.5em;
      color: var(--terracotta-orange);
      margin-bottom: 20px;
    }

    .service-item h4 {
      font-size: 1.5em;
      color: var(--primary-blue);
      margin-bottom: 10px;
    }

    /* Projects Section */
    .projects-section h3 {
      text-align: center;
      margin-bottom: 40px;
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-bottom: 40px;
    }

    .project-item {
      background-color: var(--white);
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .project-item img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      display: block;
    }

    .project-item h4 {
      padding: 15px 20px 0;
      font-size: 1.4em;
      color: var(--primary-blue);
    }

    .project-item p {
      padding: 0 20px 20px;
      font-size: 0.95em;
      color: #555;
    }

    .projects-section .btn {
      display: block;
      width: fit-content;
      margin: 0 auto;
    }

    /* Call to Action Section */
    .cta-section {
      background-color: var(--terracotta-orange);
      color: var(--white);
      padding: 80px 0;
      text-align: center;
    }

    .cta-section h2 {
      color: var(--white);
      font-size: 2.8em;
      margin-bottom: 20px;
    }

    .cta-section p {
      font-size: 1.2em;
      margin-bottom: 30px;
    }

    .cta-section .btn {
      background-color: var(--primary-blue);
      color: var(--white);
    }

    .cta-section .btn:hover {
      background-color: var(--white);
      color: var(--terracotta-orange);
    }

    /* Contact Section */
    .contact-section h3 {
      text-align: center;
      margin-bottom: 40px;
    }

    .contact-info {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
      margin-bottom: 50px;
    }

    .contact-info p {
      background-color: var(--white);
      padding: 20px 30px;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      gap: 15px;
      font-size: 1.1em;
      color: var(--deep-slate-green);
      margin-bottom: 0; /* Override default p margin */
    }

    .contact-info i {
      color: var(--terracotta-orange);
      font-size: 1.5em;
    }

    .contact-form {
      max-width: 600px;
      margin: 0 auto;
      background-color: var(--white);
      padding: 40px;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
      width: 100%;
      padding: 15px;
      margin-bottom: 20px;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-family: 'Vazirmatn', sans-serif;
      font-size: 1em;
      color: var(--primary-blue);
      text-align: right; /* Ensure text direction in input fields */
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--terracotta-orange);
      box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
    }

    .contact-form textarea {
      resize: vertical;
    }

    .contact-form button.btn-primary {
      width: 100%;
      border: none;
      cursor: pointer;
      font-size: 1.1em;
    }

    /* Footer */
    .main-footer {
      background-color: var(--primary-blue);
      color: var(--white);
      padding: 30px 0;
      text-align: center;
      border-top: 5px solid var(--terracotta-orange);
    }

    .main-footer .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap; /* Allow wrapping on smaller screens */
      gap: 20px;
    }

    .main-footer p {
      margin-bottom: 0;
      font-size: 0.9em;
    }

    .main-footer .social-links a {
      color: var(--white);
      font-size: 1.5em;
      margin-left: 15px;
      transition: color 0.3s ease;
    }

    .main-footer .social-links a:hover {
      color: var(--terracotta-orange);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .main-header .container {
        flex-direction: column;
        text-align: center;
      }

      .main-header .main-nav ul {
        flex-direction: column;
        margin-top: 20px;
      }

      .main-header .main-nav ul li {
        margin: 0 0 10px 0;
      }

      .hero-section h2 {
        font-size: 2.5em;
      }

      .about-items, .service-grid, .project-grid {
        flex-direction: column;
        align-items: center;
      }

      .about-item, .service-item, .project-item {
        width: 100%;
        max-width: 400px; /* Limit width for better appearance on small screens */
      }

      .contact-info {
        flex-direction: column;
        align-items: center;
      }

      .main-footer .container {
        flex-direction: column;
      }

      .main-footer .social-links {
        margin-top: 20px;
      }
    }