@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSans.ttf") format("truetype");
}

/* عمومی */
body {
  background: #000000;
  color: #e5e7eb;
  font-family: "IRANSans", "Tahoma", sans-serif;
  overflow-x: hidden;
  margin: 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.4s ease;
}
html {
  scroll-behavior: smooth;
}
/* وقتی اسکرول میشه */
.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 12, 20, 0.98);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

/* کوچک شدن لوگو */
.header.scrolled .logo img {
  height: 35px;
}

.header.scrolled .logo span {
  font-size: 18px;
}

/* منو کوچیک‌تر */
.header.scrolled .nav a {
  font-size: 14px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
}

/* Nav */
.nav {
  display: flex;
  gap: 30px;
  padding: 0 50px 0;
  font: 1em "IRANSans", sans-serif;
  font-size: medium;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: 0.3s;
}

.nav a:hover {
  color: #ffd700;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ffd700;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffd700;
  transition: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #0a0c14;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/hero-right.png") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  padding: 0 50px;
}

/* Container Flex */
.hero-inner.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* سمت راست متن */
.hero-text {
  flex: 1;
  color: #ffd700;
  max-width: 600px;
  text-align: right;
}

.hero-text h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffd700, #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #fff;
  line-height: 1.5;
}

.hero-text button {
  padding: 15px 45px;
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #0a0c14;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

.hero-text button:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.7);
}

/* سمت راست تصویر طلایی */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 450px;
  object-fit: contain;
  animation: fadeIn 1.2s ease-out;
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* لوگوهای پایین هیرو */
.hero-logo-slider {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #000;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, transparent, #ffd700, transparent) 1;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
  padding: 15px 0;
  display: flex;
  overflow: hidden; /* ضروری برای انیمیشن ممتد */
  z-index: 5;
  opacity: 0.85;
  direction: rtl; /* جهت را برای اسکرول از راست به چپ ثابت نگه می‌دارد */
  
}

/* Container لوگوها */
.company-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.company-logos::-webkit-scrollbar {
  height: 6px;
}

.company-logos::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 3px;
}

/* لوگوها */
.company-logos img {
  max-height: 60px; /* حداکثر ارتفاع کنترل شده */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(120%);
  transition:
    transform 0.3s,
    filter 0.3s;
}

.company-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(120%) drop-shadow(0 0 15px #ffd700);
}

/* اسکرول لوگو ممتد */
.slider-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: scroll-logos 30s linear infinite;
  will-change: transform;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 500px;
  padding-right: 50px; /* فاصله بین دو گروه */
  flex-shrink: 0;
}



.logo-group img:hover {
  filter: grayscale(0%) brightness(120%) drop-shadow(0 0 10px #ffd700);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Moving by exactly one group width (1/3 of total track) */
    transform: translateX(-33.3333%);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner.container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .hero-image {
    justify-content: center;
  }
  .hero-image img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 36px;
  }
  .hero-text p {
    font-size: 16px;
  }
  .slider-track img,
  .company-logos img {
    max-height: 40px;
  }
}
/* Companies Section */
.companies {
  padding: 80px 30px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.companies h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 36px;
  color: #ffd700;
  letter-spacing: 2px;
}

/* Grid */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 2fr));
  gap: 10px;
}

/* Cards */
.company-card {
  max-width: 200px;
  background: linear-gradient(145deg, #0f111f, #1a1d2d);
  padding: 15px 15px;
  text-align: center;
  font-size: 18px;
  color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.5s ease;
  box-sizing: border-box;
  filter: grayscale(60%) brightness(120%);
}

.company-card:hover {
  filter: grayscale(0%) brightness(120%) drop-shadow(0 0 15px #ffd700);
}
.company-card img,
.slider-track img {
  max-width: 100%; /* اندازه از کارت یا container فراتر نره */
  height: auto;
  display: block;
  margin: 0 auto;
}
.about-holding {
  padding: 100px 0;
  background: #111;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 25px;
  position: relative;
}

.about-text h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #d4af37; /* طلایی */
  position: absolute;
  bottom: -10px;
  right: 0;
}

.about-text p {
  line-height: 1.9;
  margin-bottom: 20px;
  color: #ccc;
  text-align: justify;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  min-width: 300px;
}

.stat-box {
  background: #1a1a1a;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
}

.stat-box h3 {
  font-size: 32px;
  color: #d4af37;
  margin-bottom: 10px;
}

.stat-box span {
  color: #aaa;
  font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 120px 0;
  background: #0a0c14;
  color: #fff;
}

.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو ستون کنار هم */
  gap: 60px;
  background: #111;
  border: 1px solid rgba(212, 175, 55, 0.08);
  padding: 40px;
  align-items: start; /* تراز متن و نقشه از بالا */
}

.contact-info {
  width: 100%;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffd700;
}

.contact-info p {
  margin-bottom: 18px;
  font-size: 16px;
  color: #ccc;
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block; /* حذف فاصله پایین iframe */
  filter: grayscale(100%) brightness(80%);
}

/* موبایل */
@media (max-width: 768px) {
  .contact-block {
    grid-template-columns: 1fr; /* ستون‌ها زیر هم */
  }
  .contact-map iframe {
    height: 300px;
  }
}
/* Footer */
.footer {
  padding: 40px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Responsive */
@media (max-width: 992px) {
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
}



