/* === new VISION Global Styles === */
:root {
  --primary: #0d1f35;
  --primary-light: #162d4a;
  --accent: #00b4d8;
  --accent-glow: rgba(0,180,216,0.25);
  --accent-hover: #0090b4;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --text-muted: #888888;
  --border: #e2e5ea;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === NAVIGATION === */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo { font-size: 22px; font-weight: 800; color: var(--primary); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 8px 20px; border-radius: 4px; font-size: 13px;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* === HERO === */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Blueprint grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 30%, transparent 70%);
}

/* Scanning line effect */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  animation: scanLine 6s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  30% { top: 100%; opacity: 0; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 400px; height: 400px;
  background: rgba(0,180,216,0.06);
  top: -100px; right: -80px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 250px; height: 250px;
  background: rgba(0,180,216,0.05);
  bottom: -60px; left: 10%;
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb--3 {
  width: 180px; height: 180px;
  background: rgba(0,180,216,0.08);
  top: 40%; right: 35%;
  animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.1); }
  66% { transform: translate(20px, -15px) scale(0.9); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.2); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Left text column */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid rgba(0,180,216,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--accent);
  position: relative;
}
.hero h1 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}

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

/* Right visual column */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.15s both;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats grid on hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 380px;
}

.hero-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.hero-stat-card:hover {
  border-color: rgba(0,180,216,0.35);
  background: rgba(255,255,255,0.05);
}

.hero-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-stat-lbl {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

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

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 3px;
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.btn-accent {
  background: var(--accent); color: #000;
  box-shadow: 0 0 24px rgba(0,180,216,0.2);
}
.btn-accent:hover {
  background: #00e6b8; color: #000;
  box-shadow: 0 0 36px rgba(0,180,216,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.btn-outline-dark { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* === SECTION TITLES === */
.section { padding: 80px 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-gray { background: var(--bg); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 800; color: var(--primary); }
.section-dark .section-title h2 { color: var(--white); }
.section-title p { color: var(--text-light); margin-top: 8px; font-size: 15px; }
.section-dark .section-title p { color: rgba(255,255,255,0.6); }
.section-title .line { width: 48px; height: 3px; background: var(--accent); margin: 16px auto 0; }

/* === CATEGORY CARDS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.10); }
.card-img { width: 100%; height: 220px; object-fit: cover; background: #eef1f5; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-light); line-height: 1.5; margin-bottom: 16px; }
.card-body .card-link { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; }

/* === STATS BAR === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 32px 16px; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }

/* === CERT BADGES === */
.certs { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cert-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}

/* === PRODUCT TABLE === */
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 14px; }
.spec-table td:first-child { font-weight: 600; color: var(--primary); width: 160px; white-space: nowrap; }

/* === HIGHLIGHT BOXES === */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.highlight-box {
  background: var(--bg); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.highlight-box .icon { font-size: 28px; margin-bottom: 8px; }
.highlight-box .val { font-size: 18px; font-weight: 800; color: var(--primary); }
.highlight-box .lbl { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* === FEATURE LIST === */
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 6px 0; font-size: 14px; color: var(--text); }
.feature-list li::before { content: '\2713'; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* === FORM === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; font-family: var(--font);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,78,35,0.1);
}
.btn-submit {
  background: var(--accent); color: var(--white);
  border: none; padding: 12px 40px; border-radius: 4px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-submit:hover { background: var(--accent-hover); }

/* === BLOG CARDS === */
.blog-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.blog-card .card-body .date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

/* === LANGUAGE SELECTOR === */
.nav-lang { margin-left: 12px; }
.lang-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.lang-select:focus { outline: none; border-color: var(--accent); }

/* === FOOTER === */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.6);
  padding: 48px 24px 24px; font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }

/* === PAGE BANNER === */
.page-banner {
  background: var(--primary); color: var(--white);
  text-align: center; padding: 64px 24px;
}
.page-banner h1 { font-size: 36px; font-weight: 800; }
.page-banner p { color: rgba(255,255,255,0.6); margin-top: 8px; }

/* === TWO COLUMN === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; background: var(--primary);
  color: var(--white); border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer; z-index: 90;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed; bottom: 148px; right: 24px;
  width: 56px; height: 56px; background: #25D366;
  color: white; border: none; border-radius: 50%;
  cursor: pointer; z-index: 99;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.50); }

/* === CONTACT FLOAT === */
.contact-float {
  position: fixed; bottom: 80px; right: 24px;
  width: 56px; height: 56px; background: var(--accent);
  color: white; border: none; border-radius: 50%;
  cursor: pointer; z-index: 99;
  box-shadow: 0 4px 16px rgba(240,78,35,0.35);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.contact-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(240,78,35,0.50); }
.contact-float .pulse {
  position: absolute; width: 100%; height: 100%;
  border-radius: 50%; background: var(--accent);
  animation: pulse-ring 2s infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* === LIGHTBOX === */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92); z-index: 9999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; cursor: default; }
.lightbox .close {
  position: absolute; top: 20px; right: 28px;
  color: white; font-size: 36px; cursor: pointer;
  background: none; border: none; z-index: 1;
}
.lightbox .close:hover { color: var(--accent); }

/* === FAQ ACCORDION === */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 44px 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}
.faq-answer a { color: var(--accent); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* === COOKIE CONSENT === */
#cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--primary); color: rgba(255,255,255,0.9);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.4s;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
}
#cookie-bar.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-inner span { font-size: 13px; line-height: 1.5; flex: 1; min-width: 200px; }
#cookie-accept {
  background: var(--accent); color: var(--white);
  border: none; padding: 8px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
#cookie-accept:hover { background: var(--accent-hover); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 60px 24px 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .hero-visual { margin-top: 8px; }
  .hero-stats-grid { gap: 12px; }
  .hero-stat-card { padding: 20px 14px; }
  .hero-stat-num { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 26px; }
}

/* === RTL SUPPORT (Arabic) === */
[dir="rtl"] { direction: rtl; text-align: right; }

[dir="rtl"] .nav-links { padding-right: 0; }
[dir="rtl"] .nav-lang { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .lang-select {
  background-position: left 8px center;
  padding: 6px 10px 6px 28px;
}

[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .btn-group { justify-content: flex-end; }
[dir="rtl"] .hero-stats-grid { direction: ltr; } /* numbers stay LTR */

[dir="rtl"] .section-title { text-align: center; }

[dir="rtl"] .card-body { text-align: right; }
[dir="rtl"] .card-link { direction: ltr; display: inline-block; } /* arrow stays LTR */

[dir="rtl"] .feature-list li::before { margin-right: 0; margin-left: 8px; }

[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea { direction: rtl; text-align: right; }

[dir="rtl"] .faq-item summary { padding: 18px 20px 18px 44px; text-align: right; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 20px; }
[dir="rtl"] .faq-answer { text-align: right; }

[dir="rtl"] .spec-table td:first-child { text-align: right; }

[dir="rtl"] .nav-cta { margin-right: 0; }

[dir="rtl"] .back-to-top { right: auto; left: 24px; }
[dir="rtl"] .contact-float { right: auto; left: 24px; }

[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-bottom { text-align: center; }

[dir="rtl"] .page-banner { text-align: center; }

[dir="rtl"] .two-col { direction: rtl; }
[dir="rtl"] .two-col > * { text-align: right; }

[dir="rtl"] .cookie-inner { flex-direction: row; }

[dir="rtl"] .highlight-box { direction: rtl; }

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
}
