@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
  --accent: #0ea5a4;
  --bg: #f7f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --primary-gradient: linear-gradient(45deg,#eb6e00,#ff8800);
  --hover-gradient: linear-gradient(45deg,#004e92,#0072d9);

  /* layout scale */
  --site-max: 1100px;
  --container-padding: 20px;
  --lang-bar-height: 56px;
  --gutter: 24px;
  --card-min: 280px;
  --card-max: 360px;
  --lang-badge-size: 36px;
  --nav-pill-padding-vertical: 8px;
  --nav-pill-padding-horizontal: 18px;
  --nav-pill-radius: 18px;
  --base-font: 16px;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--base-font); }
body { background: url(background.png) no-repeat center center fixed; background-size: cover; color: #fff; direction: rtl; line-height: 1.7; padding-top: var(--lang-fixed-offset, 0); font-family: 'Cairo', sans-serif; }



html { font-size: var(--base-font); }
a { color: inherit; text-decoration: none; }

/* ===== Container ===== */
.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 20px var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  transform: translateY(-120%);
  transition: transform .15s;
  z-index: 10000;
}
.skip-link:focus { transform: translateY(0); }

/* ===== Header ===== */
header {
  background: linear-gradient(90deg,#06283D 0%, #0B7285 100%);
  color: #fff;
  padding: 36px 20px;
}
header .container { max-width: 1100px; margin: 0 auto; padding: 24px; }
header .brand { display: flex; gap: 16px; align-items: center; }
header .brand img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
header h1 { margin: 0; font-size: 28px; }
header p.lead { color: rgba(255,255,255,0.9); margin-top: 6px; }

.language-switch,
.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0,0,0,0.65);
  position: fixed;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 10010;
  backdrop-filter: blur(8px);
  justify-content: flex-end;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.32);
}

.language-switch button,
.lang-switch .lang,
.lang-switch button {
  background: linear-gradient(45deg,#004e92,#0072d9);
  color: #fff;
  border: 1px solid rgba(14, 165, 164, 0.18);
  width: var(--lang-badge-size);
  height: var(--lang-badge-size);
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease;
  text-transform: none;
}

.language-switch button:hover,
.lang-switch .lang:hover,
.lang-switch button:hover {
  transform: translateY(-2px);
  border-color: #0ea5a4;
  box-shadow: 0 6px 18px rgba(14,165,164,0.18);
}

.language-switch button.active,
.lang-switch .lang.active,
.lang-switch button.active {
  background: linear-gradient(45deg,#eb6e00,#ff8800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(235,110,0,0.26);
  border-color: #ff8800;
}

/* Navbar style (matching الباقات) */
nav.navbar {
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: calc(var(--lang-bar-height) + 12px);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

nav.navbar a {
  text-decoration: none;
  background: linear-gradient(45deg,#eb6e00,#ff8800);
  color: white;
  padding: var(--nav-pill-padding-vertical) var(--nav-pill-padding-horizontal);
  border-radius: var(--nav-pill-radius);
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

nav.navbar a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,#004e92,#0072d9);
  border-radius: 18px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}

nav.navbar a:hover,
nav.navbar a.active {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(235,110,0,0.3);
  border-color: #0ea5a4;
}

nav.navbar a:hover::before {
  opacity: 1;
}




/* ===== Hero ===== */
.hero { 
  padding: 60px 20px; 
  text-align: center; 
}

.hero-box {
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 32px;
  margin: 0 auto 30px;
  margin-bottom: 28px;
  border-radius: 18px;
  max-width: min(900px, calc(var(--site-max) - 80px));
  box-shadow: 0 0 30px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}

.hero-box h1 { 
  text-align: center;
  font-size: 2rem; 
  color: #fff; 
  margin-bottom: 28px;
  line-height: 1.15;
}

.hero-box .highlighted { 
  color: #ff8800; 
}

.hero-box p { 
  font-size: 16px; 
  color: #eee; 
}

.hero img {
  max-width: 100%;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
}

/* ===== Ticker ===== */
.ticker {
  margin: 20px auto;
  /* make the ticker centered and medium width */
  max-width: 760px;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  padding: 6px 8px;
}

.ticker__rail {
  display: inline-flex;
  white-space: nowrap;
  animation: rail-marquee 30s linear infinite;
  /* ensure the rail is layout-fit for centered container */
  align-items: center;
}

.ticker__track { 
  display: inline-flex; 
  gap: 28px; 
  padding: 10px 14px; 
}

.ticker__item {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: .95;
  color: #f5f5f5;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap; /* prevent the sentence from breaking */
}

@keyframes rail-marquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(160px,1fr));
  gap: 14px;
  padding: 10px 20px 0;
  max-width: 820px;
  margin: 0 auto;
}

.stat {
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.stat .num { 
  font-size: 26px; 
  font-weight: 800; 
  color: #fff; 
}

.stat .label { 
  color: #ddd; 
  font-size: 13px; 
}
.modal {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 550px;
  border-radius: 14px;
  position: relative;
  animation: fadeIn .25s ease;
}

.modal-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Cards ===== */
.cards, .projects, .ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 36px 18px;
  align-items: stretch; /* ensure cards match height and don't collapse */
}

.card, .project.card, .ad-card.card {
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 18px; /* reduce padding slightly so content fits */
  border-radius: 20px;
  width: 100%;
  flex: 1 1 var(--card-min);
  min-width: var(--card-min);
  max-width: var(--card-max);
  text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible; /* allow buttons/contents to be visible if they slightly overflow */
  display: flex;
  flex-direction: column; /* make cards column flex to align image/meta/actions */
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,164,0.1), rgba(255,136,0,0.05));
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
  border-radius: 20px;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover, .project.card:hover, .ad-card.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.2);
}

.card:hover::before,
.project.card:hover::before,
.ad-card.card:hover::before {
  opacity: 1;
}

.card h3, .project h3, .ad-card h4 { 
  font-size: 1.25rem; 
  margin-bottom: 15px; 
  color: #fff;
  font-weight: 700;
}

.card p, .project p.muted, .ad-card ul li { 
  font-size: 0.95rem;
  color: #ddd; 
  margin-bottom: 15px;
  line-height: 1.6;
}

.project .img, .ad-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Ensure meta area grows so actions/buttons stay visible on all devices */
.project .meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100px; /* allow some room for content before actions */
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.tag {
  background: rgba(255,255,255,.15);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 13px;
  color: #eee;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto; /* push actions to bottom so buttons are always visible */
}

/* Ensure buttons are on top and full-width on small screens */
.actions { z-index: 2; }

@media (max-width: 700px) {
  .project .meta { min-height: 140px; }
  .project .img { min-height: 140px; }
}

.actions button, 
.actions .btn.secondary, 
.card button, 
.btn {
  background: var(--primary-gradient);
  color: #fff;
  /* fixed sizing for consistent project buttons */
  min-width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.actions button::before,
.actions .btn.secondary::before,
.card button::before,
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hover-gradient);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
  border-radius: 14px;
}

.actions button:hover, 
.actions .btn.secondary:hover, 
.card button:hover, 
.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(235,110,0,0.35);
  border-color: #0ea5a4;
}

.actions button:hover::before,
.actions .btn.secondary:hover::before,
.card button:hover::before,
.btn:hover::before {
  opacity: 1;
}

/* ===== Form Styling ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input,
form textarea,
form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255,255,255,.6);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #ff8800;
  background: rgba(0,0,0,.7);
  box-shadow: 0 0 8px rgba(255,136,0,.3);
}

form button {
  padding: 12px 20px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

form button:hover {
  background: var(--hover-gradient);
  transform: translateY(-2px);
}

/* ===== Quick Intro & Tech Summary ===== */
.section-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 16px;
  max-width: 1000px;
  margin: 0 auto;
  direction: ltr;
}

.section-intro .col-2 { 
  flex: 1 1 48%; 
  min-width: 300px; 
  display: flex; 
  justify-content: center;  
}

.section-intro .card-intro, 
.section-intro .card-tech {
  padding: 22px;
  text-align: center;
  background: rgba(0,0,0,0.6);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-intro .card-intro:hover, 
.section-intro .card-tech:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.section-intro h2, 
.section-intro h3 { 
  color: #fff; 
  font-size: 20px; 
}

.section-intro p { 
  color: #ddd; 
  font-size: 14px; 
  line-height: 1.6; 
}

.section-intro .tags { 
  justify-content: center; 
}

/* Intro card body & sizing tweaks */
.card.card-intro .card-body {
  max-width: 620px;
  text-align: right;
  padding: 18px;
}

.section-intro.container {
  padding-top: 10px;
  padding-bottom: 18px;
}

.section-intro .intro-points {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-intro .intro-point {
  font-size: 15px;
  color: #f0f6fb;
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  white-space: normal;
}

@media(min-width: 1000px) {
  .section-intro .col-2:first-child { align-items: flex-start; }
  .card.card-intro { max-width: 600px; }
}

/* Tech card: match intro styling for consistency */
.card.card-tech .card-body {
  max-width: 620px;
  text-align: right;
  padding: 18px;
}

.tech-points {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-point {
  font-size: 15px;
  color: #f0f6fb;
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tech-point strong { color: #ffdd99; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease-out;
}

.modal.show { 
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(145deg,#0b1b2b,#1a2a40);
  color: #fff;
  padding: 24px;
  border-radius: 18px;
  width: min(640px, 92vw);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
  outline: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-content .close {
  float: left;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #ff8800;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
}

.modal-content .close:hover,
.modal-content .close:focus {
  color: #0ea5a4;
  outline: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(6px);
  }
}


  /* Improve modal and RTL behaviour on small screens */
  .modal {
    padding: 18px 12px;
  }
  .modal-content {
    direction: inherit; /* respect document dir (rtl/ltr) */
    max-width: 980px;
    margin: 24px auto;
    padding: 20px;
    box-sizing: border-box;
  }
  .modal-content img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
  .case-card .case-meta { margin: 10px 0; color: var(--muted, rgba(255,255,255,0.8)); }
  .case-card .case-features { margin: 10px 0 0 0; padding-left: 1.2rem; }
  .case-card .case-features li { margin-bottom: 6px; list-style: disc inside; }

  /* Actions/buttons layout: ensure visibility and wrap on small screens */
  .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  /* enforce same min-width/height inside smaller layouts as well */
  .actions .btn, .card button, .btn { min-width: 140px; height: 44px; }

  @media (max-width: 700px) {
    .modal-content { width: 100%; margin: 12px; padding: 14px; }
    .modal-code pre { font-size: 12px; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn, .card button, .btn { width: 100%; }
    .project.card { flex-direction: column; }
    .project .img { min-height: 140px; }
    .hero-box h1 { font-size: 20px; }
  }

  /* Keep code block direction LTR for readability */
  .modal-code pre, .modal-code code { direction: ltr; unicode-bidi: embed; }
/* ===== Code block inside modal ===== */
.modal-code { display:block; }
.modal-code-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.modal-code-head strong { font-size:16px; }
.modal-code pre { background: #0f1724; color: #e6eef8; padding: 14px; border-radius: 10px; overflow:auto; max-height:60vh; font-family: Consolas, 'Courier New', monospace; font-size:13px; }
.copy-code-btn { background: linear-gradient(90deg,var(--accent),var(--primary-gradient)); color: #fff; border: 0; padding:6px 10px; border-radius:8px; cursor:pointer; box-shadow: 0 6px 18px rgba(18,38,63,0.18); }
.copy-code-btn:active { transform: translateY(1px); }


/* ===== Quick Quote Section ===== */
#quote {
  background: rgba(0, 0, 0, 0.65);
  padding: 45px 30px;
  border-radius: 22px;
  max-width: 820px;
  margin: 50px auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
}

#quote h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #ff8800;
}

#quote p.muted {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 30px;
}

/* ===== Quote Grid ===== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.quote-grid .row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.quote-grid label {
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

.quote-grid select,
.quote-grid input[type="range"] {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #555;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 100%;
  font-size: 14px;
  transition: all 0.3s;
}

.quote-grid select:hover,
.quote-grid input[type="range"]:hover {
  border-color: #0ea5a4;
}

.quote-grid select option {
  background: #1f1f1f;
  color: #fff;
}

.quote-grid .row:nth-child(3) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-grid .row:nth-child(3) label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #555;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s;
}

.quote-grid .row:nth-child(3) label:hover {
  background: rgba(14, 165, 164, 0.3);
  border-color: #0ea5a4;
}

.quote-grid .row:nth-child(3) input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff8800;
  flex-shrink: 0;
}

.quote-grid .row:nth-child(3) input[type="checkbox"]:checked + span {
  font-weight: bold;
  color: #ff8800;
}

.quote-grid .row:nth-child(3) label:has(input[type="checkbox"]:checked) {
  background: rgba(255, 136, 0, 0.2);
  border-color: #ff8800;
  color: #ff8800;
}

.quote-grid .row:nth-child(3) span {
  transition: all 0.3s ease;
}

/* ===== Quote Actions ===== */
.quote-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.quote-actions .btn,
.quote-actions .btn.secondary {
  flex: 1 1 auto;
  min-width: 140px;
}

/* ===== Floating Buttons ===== */
.fab {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  z-index: 1200;
  background: #25D366;
  color: #0b1b0b;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

.fab.chat { 
  inset-inline-end: 86px; 
  background: linear-gradient(45deg,#004e92,#0072d9); 
  color: #fff; 
}

/* WhatsApp FAB specific style */
.fab.wa {
  background: #25D366;
  color: #fff;
}

.top-btn {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 1200;
  transition: all 0.3s;
}

.top-btn:hover {
  background: rgba(255,136,0,.8);
  transform: scale(1.1);
}

/* ===== Chat Box ===== */
.chat-box {
  position: fixed;
  bottom: 86px;
  inset-inline-end: 18px;
  width: min(360px, 92vw);
  background: linear-gradient(135deg,#0b1b2b,#1a2a40);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  z-index: 1200;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.chat-box.show { 
  display: grid; 
  opacity: 1; 
  transform: translateY(0); 
}

.chat-box.hide { 
  opacity: 0; 
  transform: translateY(20px); 
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,.85);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.chat-head strong {
  color: #ff8800;
}

.chat-head button {
  background: none;
  border: none;
  color: #ff8800;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

.chat-head button:hover {
  color: #0ea5a4;
}

.chat-body { 
  max-height: 300px; 
  overflow-y: auto; 
  padding: 10px; 
  display: grid; 
  gap: 8px; 
}

.bubble { 
  padding: 10px 12px; 
  border-radius: 14px; 
  border: 1px solid rgba(255,255,255,.15); 
  max-width: 85%; 
  word-wrap: break-word;
}

.bubble.bot { 
  background: rgba(255,255,255,.06); 
}

.bubble.me { 
  background: rgba(255,136,0,.2); 
  margin-inline-start: auto; 
  border-color: #ff8800;
}

.chat-form { 
  display: flex; 
  gap: 8px; 
  border-top: 1px solid rgba(255,255,255,.12); 
  padding: 8px; 
}

.chat-form input { 
  flex: 1; 
  background: rgba(255,255,255,.08); 
  color: #fff; 
  border: 1px solid rgba(255,255,255,.15); 
  border-radius: 10px; 
  padding: 8px 10px; 
  font-family: 'Cairo', sans-serif;
}

.chat-form input:focus {
  outline: none;
  border-color: #ff8800;
}

.chat-form button { 
  background: var(--primary-gradient); 
  border: 0; 
  color: #fff; 
  border-radius: 10px; 
  padding: 8px 12px; 
  cursor: pointer; 
  font-weight: bold;
  transition: all 0.3s;
}

.chat-form button:hover {
  background: var(--hover-gradient);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media(max-width: 900px) { 
  .quote-grid { 
    grid-template-columns: 1fr; 
  } 
}

@media(max-width: 700px) { 
  .col-2 { 
    flex: 1 1 100%; 
  } 
  .brand img { 
    width: 48px; 
    height: 48px; 
  }
  .quote-actions {
    flex-direction: column;
  }
  .quote-actions .btn {
    width: 100%;
  }
}

@media(max-width: 600px) {
  .hero-box h1 { 
    font-size: 24px; 
  }
  .hero img { 
    width: 100%; 
    height: auto; 
  }
  .cards, .projects, .ads { 
    flex-direction: column; 
    align-items: center; 
  }
  .card, .project.card, .ad-card.card { 
    max-width: 90%; 
  }
  .stats {
  gap: 18px;
  padding-top: 16px;
  max-width: calc(var(--site-max) - 40px);
  margin: 0 auto;
  grid-template-columns: 1fr 1fr; 
}
    
  }
  .quote-grid .row:nth-child(3) {
    grid-template-columns: 1fr;
  }
  .modal-content {
    width: 95vw;
    padding: 16px;
  }
  nav.navbar {
    top: 35px;
  }


@media(max-width: 400px) { 
  nav.navbar a { 
    font-size: 12px; 
    padding: 7px 12px; 
    border-radius: 14px;
  }
  .language-switch button,
  .lang-switch .lang,
  .lang-switch button {
    font-size: 12px;
    padding: 6px 12px;
  }
  .stats { 
    grid-template-columns: 1fr; 
  }
  .quote-grid .row:nth-child(3) label {
    font-size: 12px;
    padding: 10px 12px;
  }
}
section h1 {
  text-align: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 700;
}

@media(max-width: 600px) {
  section h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* Button Secondary Style ✅ */
.btn.secondary {
  background: linear-gradient(45deg, #004e92, #0072d9);
  border: 1px solid #0ea5a4;
}

.btn.secondary:hover {
  background: linear-gradient(45deg, #003366, #005299);
  box-shadow: 0 4px 12px rgba(14, 165, 164, 0.4);
}

/* Packages Section ✅ */
#packages {
  padding: 60px 20px;
}

#packages-title {
  margin-bottom: 40px;
}

/* Quote Section Box ✅ */
#quote .box {
  padding: 40px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Badge for Budget Display ✅ */
.badge {
  display: inline-block;
  background: linear-gradient(45deg, #eb6e00, #ff8800);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
}

/* Header Styling ✅ */
.header {
  margin: 40px 0;
}

.header .container {
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header .lead {
  font-size: 16px;
  opacity: 0.9;
}

/* Projects Title ✅ */
#projects-title {
  margin-bottom: 40px;
  font-size: 32px;
}

/* Ads Title ✅ */
#ads-title {
  margin-bottom: 40px;
  font-size: 32px;
}

/* Estimate Box ✅ */
.estimate {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 136, 0, 0.3);
  margin-bottom: 20px;
  text-align: center;
}

.estimate strong {
  color: #ff8800;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.estimate div {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Form Width Fix ✅ */
.modal-content form {
  gap: 14px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
}

/* Chat Form Button ✅ */
.chat-form button {
  padding: 10px 14px;
  min-width: 60px;
  font-size: 13px;
}

/* ===== Responsive Updates ===== */

@media (max-width: 900px) {
  :root { --site-max: 780px; }
  .hero { padding: 48px 16px; }
  .hero-box { padding: 24px; }
}
@media (max-width: 700px) {
  .language-switch,
  .lang-switch {
    justify-content: center;
    padding: 10px;
    gap: 8px;
    position: sticky;
    top: 0;
    inset-inline-end: auto;
    right: auto;
    width: 100%;
    border-radius: 0;
    background: rgba(0,0,0,0.75);
  }
  nav.navbar { 
    top: calc(var(--lang-bar-height) + 8px);
    padding: 10px 12px;
    gap: 8px;
  }
  nav.navbar a {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 16px;
  }
}
@media (max-width: 700px) {
  :root { --site-max: 680px; --card-max: 100%; }
  .language-switch, .lang-switch { justify-content: center; top: 0; position: sticky; }
  nav.navbar { top: calc(var(--lang-bar-height) + 4px); }
  .cards, .projects, .ads { padding: 24px 12px; gap: 16px; }
  section h1 { font-size: 1.5rem; margin-bottom: 18px; }
}
@media (max-width: 420px) {
  html { font-size: 15px; }
  .hero-box { padding: 18px; }
  .container { padding-inline: 12px; }

  .chat-form {
    gap: 4px;
  }

  .chat-form input {
    font-size: 12px;
    padding: 6px 8px;
  }

  .chat-form button {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Contact-specific button (used for 'تواصل معنا' to stand out) */
.btn.contact {
  background: linear-gradient(45deg,#1e90ff,#0066ff);
  border-color: rgba(0,102,255,0.18);
}
.btn.contact::before {
  background: linear-gradient(45deg,#004e92,#0072d9);
  opacity: 0;
}
.btn.contact:hover {
  box-shadow: 0 10px 30px rgba(0,102,255,0.22);
  transform: translateY(-3px) scale(1.03);
}

/* Order success message inside modals */
.order-success {
  display: none; /* shown by JS on successful submit */
  color: #00ff88;
  text-align: center;
  font-weight: 700;
  margin: 10px 0;
}

/* Footer styling for consistent layout */
footer {
  padding: 22px 16px;
  text-align: center;
  color: #dfeaf6;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 36px;
}

footer #footer-text { color: #d1e7ff; font-size: 14px; }

/* Accessibility helper: visually hide content but keep it available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}