/* ============================================
   Air Cargo Landing Page - Emirates SkyCargo Style
   ============================================ */

:root {
  --primary-blue: #01aef0;
  --primary-blue-dark: #0198d4;
  --deep-grey: #333333;
  --white: #ffffff;
  --light-grey: #f4f4f4;
  --text-grey: #666666;
  --border-grey: #dddddd;

  /* Legacy variable names for backwards compatibility */
  --emirates-red: #01aef0;
  --dark-red: #0198d4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Fira Sans', Arial, sans-serif;
  color: var(--primary-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Navigation Bar
   ============================================ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.landing-nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu li a {
  color: var(--deep-grey);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--primary-blue);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-login-btn {
  background: var(--primary-blue);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-blue);
}

.nav-login-btn:hover {
  background: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 174, 240, 0.3);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--deep-grey);
  cursor: pointer;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  height: 650px;
  margin-top: 90px;
  background: url('/images/bg.jpg?raw=true');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image support - can be set via inline style or additional class */
.hero-section.with-bg-image {
  background-image: url(''); /* Set via inline style or JS */
}

/* Optional: Add a subtle pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Quick Action Panel
   ============================================ */

.quick-action-panel {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 900px;
}

.action-tabs {
  display: flex;
  background: var(--light-grey);
  border-bottom: 2px solid var(--border-grey);
}

.action-tab {
  flex: 1;
  padding: 18px 20px;
  background: var(--light-grey);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-grey);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.action-tab:hover {
  background: #e8e8e8;
}

.action-tab.active {
  background: var(--white);
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.tab-content {
  display: none;
  padding: 35px;
}

.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--deep-grey);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-grey);
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(1, 174, 240, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 174, 240, 0.3);
}

.btn-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.alert {
  padding: 12px 18px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
  padding: 80px 20px;
  background: var(--white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--deep-grey);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-grey);
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 50px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-grey);
  margin-bottom: 12px;
}

.service-description {
  font-size: 15px;
  color: var(--text-grey);
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.landing-footer {
  background: var(--deep-grey);
  color: var(--white);
  padding: 40px 20px 20px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  margin-bottom: 10px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .action-tabs {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 500px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Tracking Results Styles
   ============================================ */

.tracking-results,
.flight-results {
  background: var(--white);
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tracking-header,
.flight-results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light-grey);
}

.tracking-header i,
.flight-results-header i {
  font-size: 28px;
  color: #28a745;
}

.tracking-header h3,
.flight-results-header h3 {
  margin: 0;
  font-size: 22px;
  color: var(--deep-grey);
}

.tracking-section {
  margin-bottom: 25px;
}

.tracking-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-grey);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-section h4 i {
  color: var(--primary-blue);
  font-size: 18px;
}

.tracking-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
}

.tracking-row:last-child {
  border-bottom: none;
}

.tracking-label {
  font-weight: 600;
  color: var(--text-grey);
  font-size: 14px;
}

.tracking-value {
  color: var(--deep-grey);
  font-size: 14px;
  text-align: right;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--light-grey);
  color: var(--deep-grey);
}

.status-badge.status-scheduled {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.status-departed {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.status-arrived {
  background: #e8f5e9;
  color: #388e3c;
}

.status-badge.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.special-handling {
  background: #fff3cd;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #856404;
}

.tracking-status-message {
  background: #e3f2fd;
  border-left: 4px solid var(--primary-blue);
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tracking-status-message i {
  color: var(--primary-blue);
  font-size: 18px;
  margin-top: 2px;
}

.tracking-footer,
.flight-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--light-grey);
  text-align: center;
  color: var(--text-grey);
}

/* ============================================
   Flight Results Styles
   ============================================ */

.flight-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.flight-card {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.flight-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(1, 174, 240, 0.15);
}

.flight-header {
  background: var(--light-grey);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flight-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--deep-grey);
}

.flight-number i {
  color: var(--primary-blue);
}

.flight-carrier {
  font-size: 14px;
  color: var(--text-grey);
}

.flight-status {
  font-size: 11px;
}

.flight-body {
  padding: 20px;
}

.flight-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.flight-airport {
  text-align: center;
}

.airport-code {
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-grey);
  margin-bottom: 5px;
}

.airport-name {
  font-size: 13px;
  color: var(--text-grey);
  margin-bottom: 3px;
}

.airport-city {
  font-size: 12px;
  color: var(--text-grey);
  margin-bottom: 8px;
}

.flight-time {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
}

.flight-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-grey);
}

.flight-arrow i {
  font-size: 20px;
  color: var(--primary-blue);
}

.flight-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-grey);
  white-space: nowrap;
}

/* ============================================
   Responsive Styles for Results
   ============================================ */

@media (max-width: 768px) {
  .tracking-row {
    flex-direction: column;
    gap: 5px;
  }

  .tracking-value {
    text-align: left;
  }

  .flight-route {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .flight-arrow {
    transform: rotate(90deg);
  }

  .flight-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .airport-code {
    font-size: 20px;
  }

  .flight-time {
    font-size: 14px;
  }
}
