@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --main-color: #1e3c72;
  --accent-color: #3e8e7e;
  --dark-bg: #121212;
  --dark-text: #eee;
  --glass-bg-light: rgba(255, 255, 255, 0.2);
  --glass-bg-dark: rgba(40, 40, 40, 0.6);
  --glass-blur: blur(15px);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Vazir', sans-serif;
  background: url('../images/newyork.jpg') no-repeat center center/cover;
  color: #333;
  min-height: 100vh;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
  overflow-x: hidden;
}

/* بلور بک‌گراند */
body::before {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: inherit;
  filter: blur(9px);
  z-index: -1;
  opacity: 0.3;
}

/* حالت دارک */
[data-theme="dark"] html, [data-theme="dark"] body {
  background: url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: var(--dark-text);
}

[data-theme="dark"] body::before {
  opacity: 0.7;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  padding: 2rem;
  margin: 2rem 0;
  transition: background 0.4s ease;
}

[data-theme="dark"] .glass {
  background: var(--glass-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Header/Footer */
header, footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Header nav */
header.glass {
  flex-wrap: wrap;
  padding: 1rem 2rem;
}

header h1 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

header nav a:hover {
  color: var(--accent-color);
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(255,255,255,0.4);
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  color: #333;
  font-size: 1.2rem;
  transition: background 0.3s;
}

[data-theme="dark"] .theme-toggle {
  background: rgba(40,40,40,0.7);
  color: #eee;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: white;
}

/* Hero */
.hero {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: #fff;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.cta-button {
  background: linear-gradient(45deg, #3e8e7e, #1e3c72);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(62, 142, 126, 0.6);
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background: linear-gradient(45deg, #1e3c72, #3e8e7e);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.9);
  transform: translateY(-5px);
}

/* Hero Image */
.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Features */
.features {
  color: #fff;
  text-align: center;
}

.features h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}

.feature-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-item h4 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.4;
}

/* Tracking Systems */
.tracking-systems {
  margin-top: 3rem;
  text-align: center;
  color: #fff;
}

.tracking-systems h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.systems-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.system-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  text-decoration: none;
  color: #fff;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease;
}

.system-item:hover {
  background: rgba(255, 255, 255, 0.35);
}

.system-item img {
  max-width: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.system-item span {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer - شیشه ای و ثابت پایین */
footer.glass-footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  color: #ccc;
  text-align: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Footer محتویات داخلی */
footer.glass-footer p {
  margin: 0;
}

footer.glass-footer .socials a {
  color: #ccc;
  margin-left: 1rem;
  font-size: 1.4rem;
  transition: color 0.3s;
}

footer.glass-footer .socials a:hover {
  color: var(--accent-color);
}

footer.glass-footer .contact-btn {
  padding: 10px 25px;
  background: linear-gradient(135deg, #3e8e7e, #1e3c72);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.7);
  transition: background 0.3s ease, transform 0.3s ease;
}

.phone-number {
  direction: ltr;
  unicode-bidi: embed;
}


/* Modal */
#contactModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Vazir', sans-serif;
}

#contactModal .modal-content {
  background: rgba(30, 60, 90, 0.6); /* آبی تیره شفاف */
  border-radius: 25px;
  padding: 40px 50px;
  width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: #e0e7f1; /* رنگ فونت روشن خاکستری-آبی */
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: popupFadeIn 0.4s ease forwards;
  text-align: center;
  font-family: 'Vazir', sans-serif;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

#contactModal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.25);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

#contactModal .close-btn:hover {
  background: rgba(255,255,255,0.45);
}

#contactModal h3 {
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

#contactModal p {
  font-size: 1.1rem;
  margin: 12px 0;
  text-shadow: 0 0 6px rgba(0,0,0,0.2);
}

#contactModal a {
  color: #b8f3d9;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin: 10px 0;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

#contactModal a:hover {
  color: #fff;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: unset;
  }
  .hero-image img {
    max-width: 80%;
  }
}

@media (max-width: 500px) {
  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  footer.glass-footer {
    flex-direction: column;
    gap: 1rem;
  }
  footer.glass-footer .socials a {
    margin-left: 0;
  }
}
.contact-link img.contact-icon {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border-radius: 4px;
  object-fit: contain;
}
