@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Cairo:wght@400;600;700;900&family=Bebas+Neue&display=swap');

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

/* ─── SECURITY & PROTECTION ─── */
.js-only {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.5s ease;
  pointer-events: none !important;
}

.security-blocked {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: sans-serif;
  padding: 20px;
}

:root {
  --bg: #000;
  --bg2: #0C1526;
  --red: #9e0000;
  --red-bright: #e63946;
  --gold: #d4af37;
  --gold-light: #ffdf00;
  --white: #ffffff;
  --gray: #b0b0b0;
  --card-bg: rgba(12, 21, 38, 0.7);
  --border: rgba(158, 0, 0, 0.25);
  --glow: rgba(158, 0, 0, 0.3);

  --font-en: 'Montserrat', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

.section-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(180px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.glow-red {
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
}

.glow-yellow {
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.glow-blue {
  background: radial-gradient(circle, #0044ff 0%, transparent 70%);
}

.glow-spot {
  width: 300px;
  height: 300px;
  filter: blur(100px);
  opacity: 0.4;
}

/* Content Containers */
.hero-container,
.about-grid,
.services-grid,
.performance-inner,
.certs-grid,
.carousel-wrap,
.pricing-grid,
.competition-card,
.contact-grid,
.section-header {
  position: relative;
  z-index: 2;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--white);
}

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

/* ═══════════════════════════════════════════════
   ARABIC FONT — apply Cairo to EVERYTHING except icon fonts
   ═══════════════════════════════════════════════ */
[lang="ar"] {
  font-family: var(--font-ar) !important;
}

[lang="ar"] *:not(i):not([class*="fa"]) {
  font-family: var(--font-ar) !important;
  letter-spacing: 0 !important;
}

/* Restore Font Awesome — never override icon fonts */
[lang="ar"] i,
[lang="ar"] i[class*="fa"] {
  font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
  letter-spacing: normal !important;
}

/* ═══════════════════════════════════════════════
   RTL GLOBAL
   ═══════════════════════════════════════════════ */
[dir="rtl"] {
  text-align: right;
}

/* ─── NAVBAR ─────────────────────────────────── */
/* Remove global RTL nav flip to handle it more specifically in mobile/desktop */
/* [dir="rtl"] nav {
  flex-direction: row-reverse;
} */

/* nav-cta "ابدأ الآن" — keep it visible and in order */
[dir="rtl"] nav .nav-cta {
  order: 0;
  /* natural order after nav reverses */
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
  margin: 0;
}

/* ─── HERO ───────────────────────────────────── */
[dir="rtl"] .hero-container {
  justify-content: flex-end;
}

[dir="rtl"] .hero-content-left {
  text-align: right;
}

[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

[dir="rtl"] .hero-stats {
  justify-content: flex-start;
  flex-direction: row;
  /* keep dividers between stats */
}

[dir="rtl"] .hero-btns {
  justify-content: flex-start;
  flex-direction: row;
}

[dir="rtl"] .hero-img-desktop {
  right: auto;
  left: 2%;
}

[dir="rtl"] .hero-quote {
  border-left: none;
  border-right: 3px solid var(--red);
  padding-left: 0;
  padding-right: 14px;
}

/* ─── SECTION LABELS ─────────────────────────── */
[dir="rtl"] .section-label {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* ─── ABOUT ──────────────────────────────────── */
[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .about-badges {
  justify-content: flex-start;
}

/* ─── SERVICES ───────────────────────────────── */
[dir="rtl"] .service-icon {
  margin-left: auto;
  margin-right: 0;
}

/* ─── PRICING ────────────────────────────────── */
[dir="rtl"] .price-features {
  text-align: right;
}

[dir="rtl"] .price-features li {
  flex-direction: row-reverse;
}

[dir="rtl"] .price-features li::before {
  margin-right: 0;
  margin-left: 10px;
}

/* ─── CONTACT ────────────────────────────────── */
[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
  justify-content: flex-start;
}

/* ─── FOOTER ─────────────────────────────────── */
[dir="rtl"] .footer-links a:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

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

/* ─── LANG SWITCH ────────────────────────────── */
[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 8px;
}

/* ─── CAROUSEL RTL ───────────────────────────── */
[dir="rtl"] .carousel-prev {
  left: auto;
  right: 0;
}

[dir="rtl"] .carousel-next {
  right: auto;
  left: 0;
}


/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .4s;
  background: transparent;
  box-sizing: border-box;
}

nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo img {
  height: 48px;
  transition: .3s;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
  transition: .3s;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: .3s;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: .3s;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

[lang="ar"] .nav-cta {
  letter-spacing: 0;
  text-transform: none;
}

.nav-cta:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(158, 0, 0, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  /* Slightly thicker for better visibility */
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 10, 0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: .3s;
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
}

[lang="ar"] .mobile-menu a {
  font-family: var(--font-ar) !important;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

.lang-switch {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  transition: .3s;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lang-switch::before {
  font-size: 13px;
  line-height: 1;
}

.lang-switch:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(158, 0, 0, 0.35);
}

/* RTL: flip margin for lang-switch in nav */
[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 8px;
}

.mobile-lang-toggle {
  margin-top: 30px;
  background: linear-gradient(135deg, rgba(158, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(158, 0, 0, 0.5);
  padding: 12px 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(158, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.mobile-lang-toggle:hover,
.mobile-lang-toggle:active {
  transform: translateY(-3px) scale(1.05);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 25px rgba(158, 0, 0, 0.4);
}

.mlt-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.mlt-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-ar);
  text-transform: none;
  letter-spacing: 0.5px;
}



/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #02050a url('../img/BG.jpeg') no-repeat center center/cover;
  padding: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%), radial-gradient(circle at 50% 50%, rgba(12, 21, 38, 0.3) 0%, #000 100%);
  opacity: 0.9;
  z-index: 1;
}

.chain-corner {
  position: absolute;
  opacity: .1;
  pointer-events: none;
  z-index: 1;
}

.chain-tl {
  top: -60px;
  left: -60px;
  width: 380px;
  transform: rotate(-15deg);
  filter: blur(2px);
}

.chain-br {
  bottom: -60px;
  right: -60px;
  width: 360px;
  transform: rotate(165deg);
  filter: blur(2px);
}

.chain-tr {
  top: -40px;
  right: -40px;
  width: 300px;
  transform: rotate(25deg);
  opacity: .05;
}

.hero-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  min-height: 85vh;
  padding-top: 80px;
}

.hero-content-left {
  flex: 1;
}

.hero-mobile-img-wrap {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(158, 0, 0, 0.1);
  border: 1px solid rgba(158, 0, 0, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  animation: fadeDown .7s ease both;
  max-width: 100%;
  text-align: center;
  justify-content: center;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s infinite;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .9;
  letter-spacing: .02em;
  animation: fadeUp .8s .1s ease both;
  margin-bottom: 10px;
}

.hero-name span {
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--gray);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 14px 0 28px;
  animation: fadeUp .8s .2s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  animation: fadeUp .8s .3s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--gold-light);
  line-height: 1;
}

.hero-stat .lbl {
  font-size: .72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
}

.hero-quote {
  font-style: italic;
  color: var(--gold-light);
  font-size: .95rem;
  border-left: 3px solid var(--red);
  padding-left: 14px;
  margin-bottom: 32px;
  opacity: .9;
  animation: fadeUp .8s .35s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .8s .4s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #5a0000);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  transition: .3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(130, 0, 0, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: .3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-img-desktop {
  position: absolute;
  bottom: 0;
  right: 2%;
  width: auto;
  height: 88%;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  animation: fadeLeft .9s .2s ease both;
  z-index: 2;
  pointer-events: none;
}

.hero-img-desktop img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 50px rgba(158, 0, 0, 0.25));
  position: relative;
  z-index: 1;
  display: block;
}

.hero-glow-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(158, 0, 0, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: .72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}

/* SECTIONS COMMON */
section {
  padding: 90px 5%;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  flex: 0 0 28px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: .04em;
  line-height: 1;
}

.section-title span {
  color: var(--gold-light);
}

.section-sub {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 560px;
  margin-top: 12px;
}

.section-header {
  margin-bottom: 56px;
}

/* ABOUT */
#about {
  background: linear-gradient(180deg, #000 0%, #0C1526 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.about-badge {
  background: rgba(130, 0, 0, 0.15);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: .95rem;
}

.about-text strong {
  color: #fff;
}

.achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: .35s;
  position: relative;
  overflow: hidden;
}

.achievement-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.achievement-card:hover::after {
  left: 150%;
  transition: left .6s ease;
}

.achievement-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(130, 0, 0, 0.25);
  transform: translateY(-2px);
}

.achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--red);
}

.achievement-card h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.achievement-card p {
  font-size: .75rem;
  color: var(--gray);
}

/* SERVICES */
#services {
  background: #000;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transition: .4s;
  transform-origin: left;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  left: 150%;
  transition: left .7s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 0, 0, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(130, 0, 0, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(130, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--gold-light);
  transition: .3s;
}

.service-card:hover .service-icon {
  background: rgba(130, 0, 0, 0.25);
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(130, 0, 0, 0.3);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .06em;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.service-card p {
  color: var(--gray);
  font-size: .88rem;
  line-height: 1.7;
}

/* PERFORMANCE */
#performance {
  background: linear-gradient(180deg, #000 0%, #0C1526 60%, #000 100%);
}

.performance-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.performance-img-wrap {
  position: relative;
  width: 60%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(158, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.performance-img-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(158, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.performance-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.performance-img-wrap:hover img {
  transform: scale(1.04);
}

.performance-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(158, 0, 0, 0.2);
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
}

/* CERTIFICATES */
#certificates {
  background: #000;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: .4s;
}

.cert-card img {
  width: 100%;
  display: block;
  transition: .4s;
}

.cert-card:hover img {
  transform: scale(1.04);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: .3s;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-overlay span {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* TRANSFORMATIONS CAROUSEL */
#transformations {
  background: linear-gradient(180deg, #0C1526 0%, #000 100%);
}

.carousel-wrap {
  position: relative;
  padding: 0 40px;
}

.carousel-track-outer {
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

/* Desktop: 3 slides visible */
.carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
  padding: 20px 16px 14px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(130, 0, 0, 0.8);
  border: 1px solid var(--red);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: .3s;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.carousel-btn:hover {
  background: var(--red);
  box-shadow: 0 0 20px rgba(130, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: .3s;
}

.carousel-dot.active {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  width: 24px;
  border-radius: 4px;
}

/* PRICING */
#pricing {
  background: #000;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: .4s;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(130, 0, 0, 0.05), transparent);
  pointer-events: none;
}

.price-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(130, 0, 0, 0.2);
}

.price-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 5px 40px;
  transform: rotate(45deg);
  transform-origin: center;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.price-duration {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.price-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.price-currency {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.price-unit {
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: 28px;
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

[dir="rtl"] .price-features {
  text-align: right;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}

.price-features li:last-child {
  border-bottom: none;
}

.btn-price {
  display: block;
  background: linear-gradient(135deg, var(--red), #5a0000);
  color: #fff;
  padding: 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .3s;
  border: 1px solid var(--red);
}

.btn-price:hover {
  background: var(--red-bright);
  box-shadow: 0 0 24px rgba(130, 0, 0, 0.5);
}

.price-card.featured .btn-price {
  background: linear-gradient(135deg, var(--gold), #8a6000);
  border-color: var(--gold);
  color: #000;
}

.price-card.featured .btn-price:hover {
  background: var(--gold-light);
}

.competition-card {
  background: linear-gradient(135deg, rgba(12, 21, 38, 0.9), rgba(20, 0, 0, 0.8));
  border: 1px solid var(--red);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 0 40px rgba(130, 0, 0, 0.15);
}

.competition-card .comp-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold-light);
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.competition-card .comp-text p {
  color: var(--gray);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 500px;
}

.comp-badge {
  flex-shrink: 0;
  background: rgba(130, 0, 0, 0.2);
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
}

.comp-badge svg {
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 8px;
}

.comp-badge span {
  font-size: .75rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
  margin-top: 4px;
}

/* CONTACT */
#contact {
  background: linear-gradient(180deg, #0C1526 0%, #000 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: .06em;
}

.contact-info p {
  color: var(--gray);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item .c-icon {
  width: 44px;
  height: 44px;
  background: rgba(130, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  transition: .3s;
}

.contact-item .c-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item:hover .c-icon {
  background: rgba(130, 0, 0, 0.3);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(130, 0, 0, 0.3);
}

.contact-item .c-text {
  font-size: .88rem;
  color: var(--white);
  text-decoration: none;
  transition: .3s;
}

.contact-item .c-text:hover {
  color: var(--gold-light);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: .4s ease;
}

.social-btn i {
  font-size: 22px;
}

.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(158, 0, 0, 0.4);
  color: #fff;
}

.social-btn[title="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
}

.social-btn[title="Facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.social-btn[title="WhatsApp"]:hover {
  background: #25D366;
  border-color: #25D366;
}

/* FORM */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  transition: .3s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(130, 0, 0, 0.2);
}

select option {
  background: #0C1526;
}

textarea {
  resize: none;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--red), #5a0000);
  color: #fff;
  padding: 15px;
  border: 1px solid var(--red);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-submit:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(130, 0, 0, 0.5);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  color: var(--gold-light);
  font-weight: 600;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  margin-top: 12px;
  background: rgba(201, 168, 76, 0.05);
}

/* ─── NEW FOOTER ─── */
.site-footer {
  background: #000;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.footer-dev-credit {
  color: var(--gray);
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-dev-credit a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.footer-dev-credit a:hover {
  color: var(--red-bright);
}

/* RTL for Footer Split */
[dir="rtl"] .footer-container {
  flex-direction: row-reverse;
}

@media(max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  [dir="rtl"] .footer-container {
    flex-direction: column;
  }
}

/* ELECTRIC ANIMATION */
.electric-glow {
  position: relative;
  overflow: hidden;
}

.electric-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, var(--red), transparent 30%);
  animation: rotateGlow 4s linear infinite;
  opacity: 0.1;
  pointer-events: none;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(158, 0, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(158, 0, 0, 0);
  }
}

@keyframes glow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 223, 0, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 223, 0, 0.7);
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media(max-width:900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    /* Increased to avoid being hidden under fixed nav */
    gap: 20px;
    width: 95%;
  }

  #hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-content-left {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-img-desktop {
    display: none;
  }

  .hero-mobile-img-wrap {
    display: block;
    width: 85%;
    max-width: 300px;
    margin: 10px 0 20px;
    animation: fadeUp 1s ease both;
    position: relative;
    border-bottom: 2px solid var(--red);
  }

  .hero-mobile-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border: 1px solid rgba(158, 0, 0, 0.3);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    pointer-events: none;
  }

  .hero-mobile-img {
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 20px rgba(158, 0, 0, 0.15));
    display: block;
  }

  .hero-badge {
    order: -2;
    margin-bottom: 15px;
    font-size: 0.7rem;
    padding: 6px 15px;
    line-height: 1.4;
    white-space: normal;
    width: fit-content;
  }

  .hero-mobile-img-wrap {
    order: -1;
  }

  .hero-name {
    font-size: 2.8rem;
    margin-top: 10px;
  }

  .hero-stats {
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-stat {
    flex: 0 1 auto;
  }

  .hero-stat-divider {
    height: 30px;
    align-self: center;
  }

  .hero-stat .num {
    font-size: 1.8rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  /* Certificates Carousel on Mobile */
  .certs-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .certs-grid::-webkit-scrollbar {
    display: none;
  }

  .cert-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .competition-card {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Mobile carousel: 1 slide */
  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-wrap {
    padding: 0 36px;
  }

  nav {
    padding: 12px 5%;
    background: rgba(0, 0, 0, 0.95) !important;
    /* Force background on mobile for stability */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(158, 0, 0, 0.2);
    height: 70px;
    display: flex;
    align-items: center;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  /* Keep Hamburger on the Right in both LTR and RTL for mobile */
  [dir="rtl"] nav {
    flex-direction: row-reverse;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    position: relative;
    z-index: 2000;
  }

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

  .contact-form {
    padding: 24px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  /* Mobile Glows */
  .section-glow {
    width: 300px;
    height: 300px;
    filter: blur(100px);
    opacity: 0.15;
  }

  .performance-img-wrap {
    width: 100%;
    max-width: none;
    border-radius: 12px;
  }
}

@media(max-width:640px) {
  section {
    padding: 50px 5%;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .lang-switch {
    font-size: 11px;
    padding: 5px 10px;
  }

  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-about {
    margin: 15px auto;
  }

  .footer-logo img {
    height: 50px;
  }
}

/* ═══════════════════════════════════════════════
   RTL MOBILE OVERRIDES
   ═══════════════════════════════════════════════ */
@media(max-width:900px) {

  /* On mobile: hero is column+centered regardless of RTL */
  [dir="rtl"] .hero-container {
    justify-content: center;
  }

  [dir="rtl"] .hero-content-left {
    text-align: center;
    align-items: center;
  }

  [dir="rtl"] .hero-stats {
    justify-content: center;
  }

  [dir="rtl"] .hero-btns {
    justify-content: center;
  }

  [dir="rtl"] .hero-badge {
    justify-content: center;
  }

  [dir="rtl"] .hero-quote {
    text-align: center;
    border-right: none;
    border-left: none;
    border-bottom: 2px solid var(--red);
    padding-right: 0;
    padding-bottom: 10px;
  }

  /* Nav RTL handled above in mobile query */

  /* Mobile menu: keep centered in RTL too */
  [dir="rtl"] .mobile-menu {
    direction: rtl;
    text-align: center;
    /* Slide from right (100%) to stay consistent with right-side hamburger */
    transform: translateX(100%);
  }

  [dir="rtl"] .mobile-menu.open {
    transform: translateX(0);
  }

  /* Footer columns: center in mobile */
  [dir="rtl"] .footer-grid {
    direction: ltr;
    /* reset inside footer columns on mobile */
  }

  [dir="rtl"] .footer-col {
    text-align: center;
    align-items: center;
  }

  [dir="rtl"] .footer-contact-list li {
    flex-direction: row;
    /* reset to normal on small screens */
    justify-content: center;
  }

  [dir="rtl"] .social-links {
    justify-content: center;
  }

  [dir="rtl"] .price-features li {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .contact-item {
    justify-content: flex-start;
  }
}