/* ============================================
   Sky Sea Land Logistics - Professional CSS
   ============================================ */

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

:root {
  --primary-blue: #2c4563;
  --accent-yellow: #d4af37;
  --dark-bg: #1a2332;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --border-color: #e0e0e0;
  --success-color: #27ae60;
  --warning-color: #f39c12;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #34567a 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo img {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger:hover span {
  background: var(--accent-yellow);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .logo span {
    font-size: 1rem;
    display: none;
  }
  
  .logo svg {
    width: 40px;
    height: 40px;
  }
  
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #34567a 100%);
    flex-direction: column;
    gap: 0;
    display: none;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 1rem;
  }
  
  nav a::after {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .lang-switcher {
    display: none;
  }
  
  .lang-switcher.mobile {
    display: block;
    margin-bottom: 1rem;
  }
}

.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.lang-switcher select:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-switcher select option {
  background: var(--primary-blue);
  color: white;
}

@media (max-width: 768px) {
  .lang-switcher select {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #34567a 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.tracking-bar {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tracking-bar input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.tracking-bar input:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

.tracking-bar button {
  padding: 0.8rem 2rem;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tracking-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--primary-blue);
  border-color: var(--accent-yellow);
}

.btn-primary:hover {
  background: #e5c158;
  border-color: #e5c158;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 5rem 2rem;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-blue), #34567a);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .header-right {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
}

/* ============================================
   LOGISTICS REGION SECTION
   ============================================ */

.logistics-region {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8eef5 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.region-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.region-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.region-card h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.region-card p {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .logistics-region {
    padding: 2rem 1rem;
  }
  
  .region-card {
    padding: 1.5rem;
  }
  
  .region-card h3 {
    font-size: 1.3rem;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), #34567a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* ============================================
   ROAD TRANSPORT SECTION
   ============================================ */

.road-transport {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #34567a 100%);
  color: white;
}

.road-transport .section-title {
  color: white;
}

.road-transport .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.road-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-yellow);
  backdrop-filter: blur(10px);
}

.benefit-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-yellow);
}

.benefit-item p {
  line-height: 1.6;
  opacity: 0.95;
}

.gps-tracking {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.gps-tracking h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.gps-icon {
  font-size: 3rem;
  margin: 1rem 0;
}

/* ============================================
   OFFICES SECTION
   ============================================ */

.offices {
  background: var(--light-bg);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.office-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.office-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.office-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}

.office-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 69, 99, 0.3);
  transition: background 0.3s ease;
}

.office-card:hover .office-image::after {
  background: rgba(44, 69, 99, 0.1);
}

.office-content {
  padding: 2rem;
  text-align: center;
}

.office-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.office-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.office-contact {
  font-weight: 600;
  color: var(--accent-yellow);
  margin: 1rem 0 1.5rem 0 !important;
}

.whatsapp-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #666;
  line-height: 1.6;
}

.contact-item a {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #e5c158;
}

.whatsapp-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateX(5px);
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group button {
  width: 100%;
  padding: 1rem;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group button:hover {
  background: #e5c158;
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary-blue);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .tracking-bar {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 300px;
  }

  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    padding: 3rem 1rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .services-grid,
  .road-benefits,
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */

html[lang="ar"] {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] body {
  text-align: right;
}

html[lang="ar"] nav {
  flex-direction: row-reverse;
}

html[lang="ar"] .benefit-item {
  border-left: none;
  border-right: 4px solid var(--accent-yellow);
}

html[lang="ar"] .logo {
  flex-direction: row-reverse;
}

html[lang="ar"] .header-container {
  flex-direction: row-reverse;
}

html[lang="ar"] .cta-buttons {
  flex-direction: row-reverse;
}

html[lang="ar"] .whatsapp-buttons {
  align-items: flex-end;
}

html[lang="ar"] .whatsapp-btn {
  flex-direction: row-reverse;
}

html[lang="ar"] .tracking-bar {
  flex-direction: row-reverse;
}
