/* ==========================================================================
   Top One International Supply Chain Co., Ltd. & Goatamilia Group - Main Stylesheet
   Design Tokens & Modern Glassmorphism Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg-dark: #030409;
  --bg-surface: #070c1a;
  --bg-card: rgba(10, 22, 44, 0.75);
  --bg-card-hover: rgba(15, 32, 64, 0.9);
  
  --primary-gold: #f59e0b;
  --primary-gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.25);
  
  --brand-blue: #056cb7;
  --brand-blue-light: #38bdf8;
  --blue-gradient: linear-gradient(135deg, #056cb7 0%, #0284c7 100%);
  --blue-glow: rgba(5, 108, 183, 0.3);
  
  --brand-green: #016936;
  --brand-green-light: #34d399;
  --green-gradient: linear-gradient(135deg, #016936 0%, #059669 100%);
  --green-glow: rgba(1, 105, 54, 0.3);

  --brand-multi-gradient: linear-gradient(135deg, #056cb7 0%, #016936 50%, #f59e0b 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-blue: rgba(5, 108, 183, 0.4);
  --border-green: rgba(1, 105, 54, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic-heading: 'Cairo', 'Outfit', sans-serif;
  --font-arabic-body: 'Tajawal', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-text {
  background: var(--green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.multi-text {
  background: var(--brand-multi-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: rgba(7, 12, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #000;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.brand-logo-img {
  height: 46px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--border-gold);
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 15px var(--gold-glow);
  transition: var(--transition);
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.logo-duo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-badge-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-duo-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(15, 24, 46, 0.9);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  margin-top: 1.5rem;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  font-weight: 600;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.desktop-cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  outline: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0 1rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
  padding: 0.4rem 0;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.mobile-nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: rgba(245, 158, 11, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.8) 0%, rgba(7, 12, 24, 0.95) 100%),
              url('images/hero_freight.jpg') center/cover no-repeat;
  opacity: 0.5;
  filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section-padding {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.about-image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-badge-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
}

.about-badge-tag h4 {
  font-size: 1.1rem;
  color: var(--primary-gold);
}

.about-badge-tag p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.info-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.info-mini-card h5 {
  font-size: 1.05rem;
  color: var(--primary-gold);
  margin-bottom: 0.35rem;
}

.info-mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-gold);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-bullets {
  list-style: none;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.service-bullets li svg {
  color: var(--primary-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   Yiwu Warehousing Highlight Section
   ========================================================================== */
.warehouse-banner {
  background: linear-gradient(135deg, rgba(15, 24, 46, 0.9) 0%, rgba(7, 12, 24, 0.95) 100%),
              url('images/warehouse_logistics.jpg') center/cover no-repeat;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.warehouse-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.warehouse-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.capacity-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold-light);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Advantages Grid
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.adv-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.adv-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px var(--gold-glow);
}

.adv-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.adv-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Ports Network Grid
   ========================================================================== */
.ports-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 3rem;
}

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

.port-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.port-item:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--primary-gold);
}

.port-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.port-type {
  font-size: 0.75rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-detail-list {
  list-style: none;
  margin: 2rem 0;
}

.contact-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-detail-list svg {
  color: var(--primary-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-detail-list a {
  transition: var(--transition);
}

.contact-detail-list a:hover {
  text-decoration: underline !important;
  filter: brightness(1.2);
}

.site-footer {
  background: #04070f;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Keyframes for Mobile Menu */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Comprehensive Responsive Media Queries (UX/UI Optimized)
   ========================================================================== */

/* Laptop & Large Tablet (<= 992px) */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .warehouse-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablet & Mobile Header Transition (<= 1080px) */
@media (max-width: 1080px) {
  .site-header {
    padding: 0.85rem 0;
  }
  
  .desktop-cta {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 12, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
    align-items: stretch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  
  .site-header.nav-open .nav-links {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    border: 1px solid transparent;
  }
  
  .nav-links a:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--border-gold);
  }
  
  .mobile-nav-cta {
    display: block;
    margin-top: 0.5rem;
  }
  
  .mobile-nav-cta .btn {
    width: 100%;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero-section {
    padding: 6.5rem 0 3.5rem;
  }
  
  .about-image-wrapper img {
    height: 320px;
  }

  .about-badge-tag {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 1rem;
  }

  .ports-container {
    padding: 2rem 1.25rem;
  }

  .contact-info-card {
    padding: 2rem 1.25rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Small Mobile Devices (<= 576px) */
@media (max-width: 576px) {
  .container {
    width: 94%;
    padding: 0 0.5rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .brand-logo-img {
    height: 38px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .brand-duo-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }

  .warehouse-banner {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .capacity-pills {
    gap: 0.5rem;
  }

  .pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
    width: 100%;
    text-align: center;
  }

  .services-grid {
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .adv-card {
    padding: 1.5rem 1rem;
  }

  .ports-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .port-item {
    padding: 0.85rem 0.5rem;
  }

  .port-name {
    font-size: 0.95rem;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-title {
    font-size: 0.85rem;
  }
  
  .brand-subtitle {
    display: none;
  }

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

/* Floating WhatsApp Quick Button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.65);
}

@media (max-width: 576px) {
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Language Selector Component
   ========================================================================== */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-gold);
  color: var(--primary-gold-light);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(8, 14, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown.open {
  display: block;
  animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lang-dropdown li {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-dropdown li:hover,
.lang-dropdown li.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-gold-light);
  font-weight: 600;
}

/* ==========================================================================
   RTL (Right-to-Left) Layout Adjustments for Arabic
   ========================================================================== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .brand-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title {
  font-family: var(--font-arabic-heading);
  letter-spacing: normal;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 2rem;
}

@media (max-width: 576px) {
  html[dir="rtl"] .floating-whatsapp {
    left: 1.25rem;
    right: auto;
  }
}

html[dir="rtl"] .info-mini-card[style*="border-left"] {
  border-left: none !important;
  border-right: 3px solid var(--brand-blue) !important;
}

html[dir="rtl"] .info-mini-card:nth-child(2)[style*="border-left"] {
  border-right: 3px solid var(--brand-green) !important;
}

html[dir="rtl"] .service-bullets li {
  padding-left: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] .service-bullets svg {
  left: auto;
  right: 0;
}

html[dir="rtl"] .contact-detail-list li {
  flex-direction: row;
}

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .about-badge-tag {
  left: auto;
  right: 1.5rem;
}


