@font-face {
  font-family: iranyekan;
  font-style: normal;
  font-weight: bold;
  src: url("../../fonts/iranyekan2/eot/iranyekanwebboldfanum.eot");
  src:
    url("../../fonts/iranyekan2/eot/iranyekanwebboldfanum.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../../fonts/iranyekan2/woff/iranyekanwebboldfanum.woff")
      format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../../fonts/iranyekan2/ttf/iranyekanwebboldfanum.ttf")
      format("truetype");
}
* {
  font-family: iranyekan !important;
}

body {
  font-family: "Vazir", Tahoma, sans-serif;
  direction: rtl;
  margin: 0;
  background-color: #ffffff;
}

:root {
  --bg-dark: #f8fafc;
  --card-bg: #0f172a; /* سرمه‌ای تیره صنعتی */
  --accent: #f97316; /* نارنجی انرژی پترونا */
  --text-main: #f1f5f9;
}

/* Intro Section */
.petrona-intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 60px;
  background-color: #ffffff;
}

.petrona-intro-text {
  flex: 1;
  direction: rtl;
}

.petrona-intro-text h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #0f172a;
  font-weight: 800;
}

.orange-text {
  color: var(--accent);
}

.petrona-intro-text p {
  line-height: 1.9;
  color: #475569;
  text-align: justify;
}

.petrona-intro-image {
  flex: 1;
}

.petrona-intro-image img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.petrona-services-section {
  background-color: var(--bg-dark);
  padding: 80px 8%;
}

.section-title {
  text-align: center;
  color: #0f172a;
  margin-bottom: 50px;
  font-size: 2rem;
}

.services-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: var(--card-bg);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--text-main);
  margin-bottom: 15px;
}

.service-card p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.card-btn {
  color: var(--accent);
  font-weight: bold;
  margin-top: 15px;
}

/* Modal */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.modal-box {
  background: #0f172a;
  width: 90%;
  max-width: 700px;
  padding: 40px;
  border-radius: 25px;
  border: 1px solid var(--accent);
  position: relative;
  animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-content-area {
  color: #cbd5e1;
  text-align: right;
}

.modal-content-area h2 {
  color: var(--accent);
}

.modal-content-area h4 {
  color: #fff;
  border-right: 3px solid var(--accent);
  padding-right: 10px;
}

.modal-content-area ul {
  list-style: none;
  padding: 0;
}
.modal-content-area li {
  margin-bottom: 10px;
  padding-right: 20px;
  position: relative;
}
.modal-content-area li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--accent);
}

/* Contact Section */
.petrona-contact-section {
  padding: 60px 10%;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #0f172a;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  color: white;
}

.contact-card h3 {
  color: var(--accent);
}

.contact-footer-text {
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-footer-text::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent);
  display: block;
  margin: 10px auto;
}
