/* ==========================================================================
   IRAN-CHINA AIR CARGO LOGISTICS - CORE STYLESHEET
   Design System: UI/UX Pro Max, Glassmorphism, Dual Theme (Light/Dark)
   ========================================================================== */

/* Typography & Direction */
html[lang="fa"] body {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  direction: rtl;
}

html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  direction: ltr;
}

html[lang="zh"] body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  direction: ltr;
}

/* Base Theme Configuration */
:root {
  --primary-navy: #0B1736;
  --primary-gold: #D4AF37;
  --accent-blue: #2563EB;
  --bg-light: #F8FAFC;
  --bg-dark: #081022;
  --card-light: #FFFFFF;
  --card-dark: #0F1C3F;
  --border-light: #E2E8F0;
  --border-dark: #1E293B;
}

/* Ambient Glowing Background Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.light .ambient-orb {
  opacity: 0.25;
}

.ambient-orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(37, 99, 235, 0.15) 70%, transparent 100%);
}

.ambient-orb-2 {
  top: 35%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(11, 23, 54, 0.2) 70%, transparent 100%);
}

.ambient-orb-3 {
  bottom: 10%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(30, 58, 138, 0.2) 70%, transparent 100%);
}

/* Glassmorphism System */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .glass-panel {
  background: rgba(15, 28, 63, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-gold {
  background: rgba(254, 249, 231, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.08);
}

.dark .glass-panel-gold {
  background: rgba(30, 38, 64, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.1);
}

/* Interactive Navigation Menu Link Active States */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.625rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dark .nav-link {
  color: #cbd5e1;
}

.nav-link:hover {
  color: #b45309;
  background-color: rgba(217, 119, 6, 0.08);
}

.dark .nav-link:hover {
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.1);
}

.nav-link.nav-active,
.nav-link-active {
  color: #92400e !important;
  font-weight: 800 !important;
  background-color: rgba(245, 158, 11, 0.18) !important;
  box-shadow: inset 0 0 0 1.5px rgba(217, 119, 6, 0.5) !important;
}

.dark .nav-link.nav-active,
.dark .nav-link-active {
  color: #fde047 !important;
  font-weight: 800 !important;
  background-color: rgba(253, 224, 71, 0.16) !important;
  box-shadow: inset 0 0 0 1.5px rgba(253, 224, 71, 0.45), 0 0 15px rgba(253, 224, 71, 0.15) !important;
}

/* Cascading Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 0.35rem;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

html[lang="fa"] .nav-dropdown-menu {
  right: 0;
  left: auto;
}

html[lang="en"] .nav-dropdown-menu,
html[lang="zh"] .nav-dropdown-menu {
  left: 0;
  right: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.dark .nav-dropdown-item {
  color: #e2e8f0;
}

.nav-dropdown-item:hover {
  background-color: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.dark .nav-dropdown-item:hover {
  background-color: rgba(253, 224, 71, 0.12);
  color: #fde047;
}

.nav-dropdown-item.active {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #92400e !important;
  font-weight: 800 !important;
}

.dark .nav-dropdown-item.active {
  background-color: rgba(253, 224, 71, 0.18) !important;
  color: #fde047 !important;
  font-weight: 800 !important;
}

/* Gradient Shimmer Borders & Buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shimmerMove 4s infinite linear;
}

@keyframes shimmerMove {
  0% { left: -70%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #B45309 0%, #D4AF37 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .text-gold-gradient {
  background: linear-gradient(135deg, #FDE047 0%, #D4AF37 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Blue Gradient Text */
.text-blue-gradient {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .text-blue-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 50%, #DBEAFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D Tilt Card Effects */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.tilt-card:hover {
  box-shadow: 0 25px 50px -12px rgba(11, 23, 54, 0.15), 0 0 25px rgba(212, 175, 55, 0.15);
}

.dark .tilt-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(37, 99, 235, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

.dark ::-webkit-scrollbar-track {
  background: #0B1736;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Pulse Beacon on Map */
@keyframes mapBeacon {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.3;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.map-beacon-ring {
  animation: mapBeacon 2.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  transform-origin: center;
}

/* Flight Route Dash Animation */
@keyframes flightDash {
  to {
    stroke-dashoffset: -100;
  }
}

.flight-corridor-line {
  stroke-dasharray: 6, 6;
  animation: flightDash 20s linear infinite;
}

/* Image Zoom on Hover */
.img-zoom-box {
  overflow: hidden;
}

.img-zoom-box img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-box:hover img {
  transform: scale(1.06);
}

/* Range Curve SVG Styling */
.range-chart-grid {
  stroke: rgba(226, 232, 240, 0.6);
}

.dark .range-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
}

.range-chart-line {
  stroke: #D4AF37;
  stroke-width: 3;
  fill: none;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.4));
}

.dark .range-chart-line {
  stroke: #FDE047;
  filter: drop-shadow(0 4px 15px rgba(253, 224, 71, 0.5));
}

/* World Map SVG Custom Styles */
.world-map-svg path.country-base {
  fill: #CBD5E1;
  stroke: #FFFFFF;
  stroke-width: 0.6;
  transition: fill 0.25s ease;
}

.dark .world-map-svg path.country-base {
  fill: #1E293B;
  stroke: #0A1226;
  stroke-width: 0.6;
}

.world-map-svg path.country-iran {
  fill: #1E3A8A;
  stroke: #3B82F6;
  stroke-width: 1.2;
}

.dark .world-map-svg path.country-iran {
  fill: #1D4ED8;
  stroke: #60A5FA;
  stroke-width: 1.2;
}

.world-map-svg path.country-china {
  fill: #92400E;
  stroke: #F59E0B;
  stroke-width: 1.2;
}

.dark .world-map-svg path.country-china {
  fill: #B45309;
  stroke: #FDE047;
  stroke-width: 1.2;
}

.world-map-svg path.country-transit {
  fill: #94A3B8;
  stroke: #E2E8F0;
}

.dark .world-map-svg path.country-transit {
  fill: #334155;
  stroke: #1E293B;
}

/* FAQ Accordion Transitions */
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="fa"] #toast {
  right: auto;
  left: 24px;
}

#toast.show {
  transform: translateY(0);
}
