/* =============================================
   استایل اصلی دلفین تریلر
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --dark-1:   #141e30;
  --dark-2:   #1c2e40;
  --dark-3:   #243b55;
  --teal:     #4ca1af;
  --teal-dk:  #2c3e50;
  --text-muted: #99aab5;
  --text-dim:   #aab7c4;
}

html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background-color: var(--dark-1);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  direction: rtl;
}

/* ---- ناوبار ---- */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(20, 30, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76,161,175,0.15);
  height: 65px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  transition: background 0.3s;
}
.navbar-brand {
  font-size: 22px;
  font-weight: 100;
  letter-spacing: 8px;
  color: #fff;
  text-decoration: none;
  margin-left: auto;
}
.navbar-brand span { color: var(--teal); }
.navbar-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--teal); }
.navbar-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.btn-login {
  padding: 8px 22px;
  border: 1px solid var(--teal);
  border-radius: 50px;
  color: var(--teal);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-login:hover { background: var(--teal); color: #fff; }
.btn-register {
  padding: 8px 22px;
  border-radius: 50px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-register:hover { background: #3a8d9b; }
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-name {
  font-size: 13px;
  color: var(--text-dim);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  margin-right: auto;
}
.hamburger span {
  width: 25px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 65px; right: 0; left: 0;
  background: rgba(20,30,48,0.98);
  padding: 20px 30px;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  border-bottom: 1px solid rgba(76,161,175,0.2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---- هدر اصلی ---- */
.hero {
  height: 100vh;
  background: radial-gradient(circle at center, var(--dark-3) 0%, var(--dark-1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(76,161,175,0.1);
  padding-top: 65px;
}
.hero h1 {
  font-size: clamp(42px, 10vw, 90px);
  font-weight: 100;
  letter-spacing: 20px;
  margin: 0;
  animation: fadeInDown 1s ease;
}
.hero p {
  color: var(--teal);
  letter-spacing: 10px;
  font-size: 11px;
  margin-top: 20px;
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  animation: bounce 2s infinite;
  color: var(--teal);
  font-size: 24px;
}

/* ---- بخش محصولات ---- */
#products {
  padding: 100px 0;
  background: #f9f9f9;
}
#products h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 36px;
  color: #1a1a1a;
}
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.product-card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(20,30,48,0.15);
}
.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.product-card-body { padding: 20px; }
.product-card-body h3 { color: #1a1a1a; margin: 0; font-size: 17px; }

/* ---- مودال محصول ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,30,48,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
}
.modal-overlay.active { display: block; }
.modal-content {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  border-radius: 35px;
  color: #333;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.modal-content.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
#modalImg {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}
#modalTitle { font-size: 26px; margin-bottom: 10px; color: var(--dark-1); width: 100%; }
#modalDesc  { font-size: 15px; line-height: 1.8; color: #666; width: 100%; }
.close-btn {
  position: absolute;
  left: 22px; top: 18px;
  font-size: 36px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
  line-height: 1;
}
.close-btn:hover { color: #e53935; }
.order-btn {
  display: inline-block;
  min-width: 210px;
  padding: 13px 30px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 25px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 10px 20px rgba(40,167,69,0.2);
}
.order-btn:hover { background: #218838; transform: scale(1.04); }

/* ---- بخش مزایا ---- */
.advantages {
  background: var(--dark-2);
  padding: 100px 0;
}
.advantages-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-heading {
  text-align: center;
  margin-bottom: 70px;
}
.section-heading h2 {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 2px;
}
.section-heading h2 span { color: var(--teal); font-weight: bold; }
.section-line {
  width: 50px; height: 2px;
  background: var(--teal);
  margin: 20px auto 0;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}
.adv-item { text-align: center; padding: 20px; }
.adv-icon { font-size: 42px; margin-bottom: 20px; }
.adv-item h4 { font-size: 19px; font-weight: 400; margin-bottom: 14px; color: var(--teal); }
.adv-item p  { font-size: 14px; color: var(--text-dim); line-height: 1.9; }

/* ---- گالری ---- */
.gallery { background: #fff; padding: 100px 0; }
.gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.gallery-subtitle {
  text-align: center;
  margin-bottom: 60px;
}
.gallery-subtitle small {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 600;
  display: block;
}
.gallery-subtitle h2 {
  font-size: 32px;
  font-weight: 200;
  color: var(--dark-1);
  margin: 10px 0 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  grid-auto-rows: 250px;
}
.gallery-item {
  background: #f0f4f8;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid #eee;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #99aab5; font-size: 12px;
}

/* ---- درباره ما ---- */
.about {
  background: #fff;
  color: #1a2a3a;
  padding: 150px 0;
  border-top: 1px solid #eee;
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}
.about-text { flex: 1; min-width: 300px; }
.about-text small {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: bold;
  text-transform: uppercase;
}
.about-text h2 {
  font-size: 42px;
  font-weight: 100;
  margin: 20px 0;
}
.about-text h2 span { color: var(--dark-3); font-weight: 400; }
.about-text p {
  font-size: 16px;
  line-height: 2.2;
  color: #5e6d7e;
  text-align: justify;
}
.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 40px;
  border-top: 1px solid #f0f0f0;
  padding-top: 30px;
}
.stat-item span { display: block; font-size: 24px; color: var(--dark-3); font-weight: 300; }
.stat-item small { color: #999; font-size: 13px; }
.about-visual {
  flex: 1; min-width: 300px; height: 440px;
  background: var(--dark-1);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; overflow: hidden;
}
.about-visual-text { z-index: 2; text-align: center; }
.about-visual-text p {
  color: var(--teal); letter-spacing: 5px; font-size: 11px; margin-bottom: 15px;
}
.about-visual-text hr { width: 30px; border-color: #fff; }
.about-bg-text {
  position: absolute;
  bottom: -20px; right: -20px;
  font-size: 140px;
  color: rgba(255,255,255,0.02);
  font-weight: bold;
  transform: rotate(-5deg);
  user-select: none;
}

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  padding: 80px 20px;
  text-align: center;
}
.cta h3 { font-size: 28px; font-weight: 200; color: #fff; margin-bottom: 20px; }
.cta p  { color: rgba(255,255,255,0.8); margin-bottom: 40px; font-size: 16px; }
.cta a {
  display: inline-block;
  padding: 17px 45px;
  background: #fff;
  color: var(--teal-dk);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta a:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* ---- فرم استعلام ---- */
.inquiry { background: #0f1722; padding: 100px 20px; }
.inquiry-box {
  max-width: 600px;
  margin: 0 auto;
  background: #1a2a3a;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(76,161,175,0.2);
}
.inquiry-box h3 { color: #fff; font-weight: 200; font-size: 24px; text-align: center; margin-bottom: 8px; }
.inquiry-box p  { color: var(--teal); font-size: 13px; text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #2c3e50;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group select option { background: #1a2a3a; color: #fff; }
.form-group input::placeholder { color: rgba(255,255,255,0.35); }
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: #3a8d9b; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}
.form-message.success { color: #4caf50; }
.form-message.error   { color: #f44336; }

/* ---- فوتر ---- */
.footer {
  background: var(--dark-1);
  color: #fff;
  padding: 60px 20px 20px;
  border-top: 1px solid #2c3e50;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand h2 {
  font-size: 22px; letter-spacing: 4px; color: var(--teal);
  margin-bottom: 15px;
}
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 2; }
.footer-links { flex: 1; min-width: 150px; }
.footer-links h4 {
  font-size: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--teal);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { color: var(--text-muted); font-size: 13px; line-height: 2.8; }
.footer-contact { flex: 1; min-width: 240px; }
.footer-contact h4 {
  font-size: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--teal);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-contact p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; line-height: 1.8; }
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #5d6d7e;
  font-size: 12px;
}

/* ---- انیمیشن‌ها ---- */
@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); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ---- ریسپانسیو ---- */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .hero h1 { letter-spacing: 10px; }
  .products-grid { gap: 20px; }
  .product-card { flex: 1 1 100%; }
  .about-inner { flex-direction: column; gap: 40px; }
  .about-visual { height: 250px; width: 100%; min-width: unset; }
  .adv-grid { gap: 30px; }
  .footer-inner { flex-direction: column; }
  .about-stats { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 15px; }
  .navbar-auth .btn-login { display: none; }
  #products, .advantages, .gallery, .about { padding: 60px 0; }
}
