:root {
  --bg: #051626;
  --bg-soft: #0f3157;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: #10395d;
  --surface-3: #1d5381;
  --line: rgba(255, 255, 255, 0.14);
  --text: #eff6ff;
  --muted: #c1d6e8;
  --primary: #35d0c8;
  --primary-2: #ffd24d;
  --accent: #f4a261;
  --success: #2ecc71;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1200px, calc(100% - 34px));
  --font-main: "Cairo", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(53, 208, 200, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 210, 77, 0.10), transparent 30%),
    linear-gradient(180deg, #0a2038 0%, #071c30 100%);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  inset-inline-start: 20px;
  top: -60px;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 999;
}

.skip-link:focus {
  top: 18px;
}

/* ═══════════════ TOP BAR ═══════════════ */
.top-bar {
  background: rgba(3, 12, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  font-size: 0.82rem;
}

.top-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(200, 220, 240, 0.7);
  transition: color 0.2s;
  padding: 6px 0;
}

.top-bar-link:hover {
  color: var(--primary);
}

.top-bar-link i {
  font-size: 0.72rem;
  color: var(--primary);
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 6px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════════ MAIN HEADER ═══════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(22px);
  background: rgba(5, 22, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.brand-text strong {
  display: block;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
  color: #fff;
  line-height: 1.3;
}

.brand-text small {
  display: block;
  color: rgba(200, 220, 240, 0.6);
  font-size: 0.76rem;
  line-height: 1.3;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.main-nav a {
  color: rgba(220, 235, 250, 0.85);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
  background: rgba(53, 208, 200, 0.08);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 0px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Track Button - CTA */
.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #041019;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 24px rgba(53, 208, 200, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.btn-track:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(53, 208, 200, 0.4);
}

/* Language Switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 2px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(200, 220, 240, 0.6);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch button.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 183, 0.28), rgba(18, 209, 186, 0.24));
  color: var(--text);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* ═══════════════ RESPONSIVE HEADER ═══════════════ */
@media (max-width: 960px) {
  .top-bar-info {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: rgba(5, 22, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .btn-track span {
    display: none;
  }

  .btn-track {
    padding: 10px 12px;
  }
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041019;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 45px rgba(31, 209, 193, 0.22);
}

.btn-outline {
  color: var(--text);
  border: 1px solid rgba(31, 209, 193, 0.30);
  background: rgba(31, 209, 193, 0.06);
}

.btn-soft {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background: linear-gradient(180deg, rgba(6, 19, 38, 0.98), rgba(4, 12, 25, 0.95));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(53, 208, 200, 0.18), transparent 18%),
    radial-gradient(circle at 84% 20%, rgba(255, 210, 77, 0.10), transparent 20%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-panel {
  padding: 34px;
  background: linear-gradient(180deg, rgba(7, 18, 36, 0.96), rgba(8, 22, 42, 0.93));
  border: 1px solid rgba(31, 209, 193, 0.12);
}

.hero-panel h3 {
  color: #f8fbff;
  margin-bottom: 12px;
}

.hero-panel p {
  color: rgba(225, 242, 255, 0.82);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(231, 245, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badges {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-badge {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-badge strong {
  display: block;
  margin-bottom: 8px;
  color: #d9fdff;
}

.hero-badge span {
  color: rgba(225, 242, 255, 0.72);
}

.hero-content,
.hero-panel,
.map-card,
.contact-form,
.contact-panel,
.info-card,
.services-grid article,
.marine-grid article,
.stat-card,
.gallery-card,
.faq-item,
.panel-card,
.mini-stat,
.contact-card,
.ports-list .port-item {
  background: linear-gradient(180deg, rgba(18, 42, 66, 0.92), rgba(9, 18, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-content {
  padding: 38px;
}

.hero-panel {
  padding: 30px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 209, 186, 0.12);
  color: #8cf0df;
  border: 1px solid rgba(18, 209, 186, 0.2);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
}

.hero-lead {
  margin: 0 0 28px;
  color: rgba(225, 243, 255, 0.88);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-badge {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge strong {
  display: block;
  margin-bottom: 6px;
  color: #9df6eb;
}

.hero-badge span,
.panel-card p,
.section-head p,
.stat-card p,
.info-card p,
.gallery-card p,
.contact-card span,
.faq-answer,
.ports-list .port-item span {
  color: var(--muted);
}

.panel-highlight {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.panel-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(18, 209, 186, 0.2), rgba(14, 165, 183, 0.22));
  color: #9ef6ee;
}

.mini-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-stat {
  padding: 18px;
}

.mini-stat strong,
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: #fff;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.hero-glow-1 {
  width: 380px;
  height: 380px;
  inset-inline-start: -140px;
  top: 18px;
  background: rgba(31, 209, 193, 0.20);
}

.hero-glow-2 {
  width: 340px;
  height: 340px;
  inset-inline-end: -96px;
  bottom: 14px;
  background: rgba(255, 210, 77, 0.18);
}

.section-head {
  margin-bottom: 34px;
  position: relative;
}

.section-head::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  letter-spacing: 0.02em;
}

.section-head p {
  color: rgba(225, 242, 255, 0.84);
  max-width: 760px;
  margin-inline: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.services-grid article,
.marine-grid article {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
  background: transparent;
  border: none;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(7, 16, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.card-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(135deg, rgba(31, 209, 193, 0.14), rgba(255, 210, 77, 0.18));
  color: #e8fcf8;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 32, 0.08), rgba(7, 14, 28, 0.88));
  z-index: 1;
}

.service-card .card-body,
.service-card .card-image {
  position: relative;
  z-index: 2;
}

.card-title {
  margin: 0;
  font-size: 1.24rem;
  color: #f3f8ff;
}

.services-grid article p,
.marine-grid article p,
.services-grid article li,
.marine-grid article li {
  position: relative;
  z-index: 2;
  color: rgba(225, 242, 255, 0.82);
}

.card-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.card-list li {
  position: relative;
  padding-inline-start: 24px;
  color: rgba(225, 242, 255, 0.78);
}

.card-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 26px;
  text-align: center;
}

.operations-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.partners-grid .info-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #f8fcff;
}

.partners-grid .info-card ul {
  margin-top: 16px;
}

.partners-grid .info-card li {
  color: rgba(225, 242, 255, 0.82);
}

.operations-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card .caption {
  padding: 16px 18px 18px;
}

.info-card {
  padding: 26px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.98), rgba(6, 14, 27, 0.95));
  border: 1px solid rgba(31, 209, 193, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

.info-card h3 {
  color: #f8fbff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-card p {
  color: rgba(225, 242, 255, 0.82);
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.info-card li {
  color: var(--muted);
  padding-inline-start: 20px;
  position: relative;
}

.info-card li::before {
  content: "•";
  color: var(--primary-2);
  position: absolute;
  inset-inline-start: 0;
}

.map-card {
  overflow: hidden;
}

#map {
  width: 100%;
  height: 420px;
}

.locations-footer {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.ports-summary {
  display: grid;
  gap: 12px;
}

.ports-note {
  margin: 0;
  color: rgba(225, 242, 255, 0.70);
  font-size: 0.95rem;
}

.ports-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
}

.ports-list::-webkit-scrollbar {
  width: 8px;
}

.ports-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.ports-list .port-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.ports-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.ports-list span {
  color: rgba(225, 242, 255, 0.70);
  font-size: 0.88rem;
}

.promise-list-wrap {
  margin-top: 24px;
  text-align: left;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.promise-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
}

.promise-item strong {
  display: block;
  margin-bottom: 10px;
  color: #f8f9fb;
  font-size: 1rem;
}

.promise-item p {
  margin: 0 0 10px;
  color: rgba(225, 242, 255, 0.82);
  line-height: 1.7;
}

.promise-bullets {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

.promise-bullets li {
  margin-bottom: 8px;
  color: rgba(225, 242, 255, 0.76);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .locations-footer {
    gap: 14px;
  }

  .ports-list {
    max-height: 220px;
  }
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
  text-align: start;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: 0.28s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 180px;
  padding: 0 20px 18px;
}

.faq-item.is-open .faq-question i {
  transform: rotate(180deg);
}

.faq-question i {
  transition: transform 0.25s ease;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.contact-panel,
.contact-form {
  padding: 28px;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.contact-card i {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(18, 209, 186, 0.14);
  color: #9cf6ec;
}

.contact-card strong {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-full {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 30px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 19, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-links span,
.site-footer p {
  color: var(--muted);
}

.footer-bottom {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.whatsapp-float,
.scroll-top {
  position: fixed;
  z-index: 180;
  box-shadow: var(--shadow);
}

.whatsapp-float,
.scroll-top {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  inset-inline-end: 18px;
  border: 0;
}

.whatsapp-float {
  bottom: 94px;
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
}

.scroll-top {
  bottom: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  inset-inline: 18px;
  bottom: 18px;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(8, 22, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.cookie-banner.is-hidden {
  display: none;
}

.toast-container {
  position: fixed;
  top: 96px;
  inset-inline-end: 18px;
  z-index: 300;
  display: grid;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #112641;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.toast.success {
  border-inline-start: 4px solid var(--success);
}

[dir="ltr"] body {
  font-family: "Inter", "Cairo", sans-serif;
}

[dir="ltr"] .card-list li,
[dir="ltr"] .info-card li {
  padding-inline-start: 0;
  padding-inline-end: 20px;
}

[dir="ltr"] .card-list li::before,
[dir="ltr"] .info-card li::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

@media (max-width: 1080px) {

  .cards-grid,
  .stats-grid,
  .ports-list,
  .operations-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .operations-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-wrap {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .main-nav {
    grid-area: nav;
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 18px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .form-grid,
  .hero-badges,
  .mini-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-content,
  .hero-panel,
  .contact-panel,
  .contact-form,
  .services-grid article,
  .marine-grid article,
  .stat-card,
  .info-card {
    padding: 20px;
  }

  .cards-grid,
  .stats-grid,
  .ports-list,
  .operations-gallery {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions .btn-soft {
    display: none;
  }
}

/* ═══════════════ AI CHAT WIDGET ═══════════════ */
.ai-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 900;
  direction: rtl;
}

/* زر فتح الشات */
.ai-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #1a9e97);
  color: #fff;
  border: none;
  box-shadow: 0 8px 32px rgba(53, 208, 200, 0.35), 0 0 0 3px rgba(53, 208, 200, 0.12);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  place-items: center;
  position: relative;
}

.ai-chat-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(53, 208, 200, 0.45), 0 0 0 5px rgba(53, 208, 200, 0.15);
}

.ai-chat-toggle::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--primary-2);
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* صندوق المحادثة */
.ai-chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 370px;
  height: 480px;
  background: linear-gradient(180deg, rgba(10, 28, 50, 0.98), rgba(5, 18, 36, 0.99));
  border: 1px solid rgba(53, 208, 200, 0.15);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(53, 208, 200, 0.08);
  overflow: hidden;
  backdrop-filter: blur(30px);
}

.ai-chat-box.active {
  display: flex;
  animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* رأس الشات */
.ai-chat-header {
  background: linear-gradient(135deg, rgba(53, 208, 200, 0.12), rgba(255, 210, 77, 0.06));
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-chat-header>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-chat-header strong {
  display: block;
  color: #f0f8ff;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.ai-chat-header small {
  color: rgba(53, 208, 200, 0.8);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-header small::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease infinite;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(200, 220, 240, 0.6);
  font-size: 1rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.ai-chat-close:hover {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, 0.2);
}

/* منطقة الرسائل */
.ai-chat-messages {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(53, 208, 200, 0.2);
  border-radius: 999px;
}

/* فقاعات الرسائل */
.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  animation: msgAppear 0.3s ease;
  word-wrap: break-word;
}

@keyframes msgAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-msg-bot {
  background: linear-gradient(135deg, rgba(53, 208, 200, 0.1), rgba(53, 208, 200, 0.05));
  border: 1px solid rgba(53, 208, 200, 0.12);
  color: rgba(225, 242, 255, 0.92);
  align-self: flex-start;
  border-bottom-right-radius: 6px;
}

[dir="ltr"] .ai-msg-bot {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 18px;
}

.ai-msg-user {
  background: linear-gradient(135deg, var(--primary), #1a9e97);
  color: #041019;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 16px rgba(53, 208, 200, 0.2);
}

[dir="ltr"] .ai-msg-user {
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 18px;
}

/* حقل الإدخال */
.ai-chat-input {
  display: flex;
  padding: 14px 16px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  flex-shrink: 0;
}

.ai-chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 18px;
  border-radius: 14px;
  color: #f0f8ff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s;
}

.ai-chat-input input::placeholder {
  color: rgba(200, 220, 240, 0.4);
}

.ai-chat-input input:focus {
  border-color: rgba(53, 208, 200, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(53, 208, 200, 0.08);
}

.ai-chat-input button {
  background: linear-gradient(135deg, var(--primary), #1a9e97);
  color: #041019;
  border: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.ai-chat-input button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(53, 208, 200, 0.3);
}

.ai-chat-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════ RESPONSIVE AI CHAT ═══════════════ */
@media (max-width: 480px) {
  .ai-chat-widget {
    bottom: 90px;
    right: 14px;
  }

  .ai-chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 15px;
  }

  .ai-chat-box {
    width: calc(100vw - 28px);
    max-width: 350px;
    height: 420px;
    right: 0;
    bottom: 64px;
  }
}

/* =========================================
   📍 ترتيب الأيقونات العائمة
   ========================================= */

/* 1️⃣ المساعد الذكي - الزاوية اليمنى السفلية */
.ai-chat-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

.ai-chat-toggle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(53, 208, 200, 0.35) !important;
    position: relative !important;
    margin: 0 !important;
}

.ai-chat-box {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    left: auto !important;
    width: 360px !important;
    max-width: calc(100vw - 60px) !important;
    height: 500px !important;
    z-index: 9999 !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5) !important;
}

/* 2️⃣ الواتساب - الزاوية اليسرى السفلية */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    right: auto !important;
    inset-inline-end: auto !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 18px !important;
    background: #25d366 !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.6rem !important;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35) !important;
    z-index: 9998 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.45) !important;
}

/* 3️⃣ زر الصعود للأعلى - فوق الواتساب مباشرة */
.scroll-top {
    position: fixed !important;
    bottom: 100px !important;
    left: 30px !important;
    right: auto !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    z-index: 9997 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

.scroll-top.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* =========================================
   📱 تعديلات الموبايل
   ========================================= */
@media (max-width: 768px) {
    .ai-chat-widget,
    .whatsapp-float {
        bottom: 20px !important;
    }
    
    .ai-chat-widget {
        right: 20px !important;
    }
    
    .whatsapp-float {
        left: 20px !important;
    }
    
    .ai-chat-box {
        bottom: 90px !important;
        right: 20px !important;
        width: calc(100vw - 40px) !important;
        height: 450px !important;
    }
    
    .scroll-top {
        bottom: 90px !important;
        left: 20px !important;
    }
    
    .ai-chat-toggle,
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
    }
}

@media (max-width: 480px) {
    .ai-chat-box {
        height: 400px !important;
    }
}