/* ===== ROOT & RESET ===== */
:root {
  --bg: #05050d;
  --bg2: #0a0a16;
  --bg3: #0f0f1e;
  --card: #0d0d1c;
  --border: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #d63031, #9b59b6);
  --grad-tech: linear-gradient(90deg, #d63031, #9b59b6, #d63031);
  --grad2: linear-gradient(135deg, #9b59b6, #d63031);
  --red: #d63031;
  --purple: #9b59b6;
  --white: #ffffff;
  --gray: #9999bb;
  --light: #ddddf5;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  --glow-red: 0 0 40px rgba(214, 48, 49, 0.25), 0 0 80px rgba(214, 48, 49, 0.1);
  --glow-purple: 0 0 40px rgba(155, 89, 182, 0.25), 0 0 80px rgba(155, 89, 182, 0.1);
  --glow: 0 0 40px rgba(214, 48, 49, 0.2);
  --card-border-hover: rgba(214, 48, 49, 0.6);
  --wave-pattern: url("data:image/svg+xml,%3Csvg width='600' height='200' viewBox='0 0 600 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 C 150 -20 150 100 300 40 C 450 -20 450 100 600 40' fill='none' stroke='rgba(255, 255, 255, 0.04)' stroke-width='1'/%3E%3Cpath d='M0 60 C 150 0 150 120 300 60 C 450 0 450 120 600 60' fill='none' stroke='rgba(214, 48, 49, 0.05)' stroke-width='1'/%3E%3Cpath d='M0 80 C 150 20 150 140 300 80 C 450 20 450 140 600 80' fill='none' stroke='rgba(155, 89, 182, 0.05)' stroke-width='1'/%3E%3Cpath d='M0 100 C 150 40 150 160 300 100 C 450 40 450 160 600 100' fill='none' stroke='rgba(255, 255, 255, 0.03)' stroke-width='1'/%3E%3Cpath d='M0 120 C 150 60 150 180 300 120 C 450 60 450 180 600 120' fill='none' stroke='rgba(214, 48, 49, 0.04)' stroke-width='1'/%3E%3Cpath d='M0 140 C 150 80 150 200 300 140 C 450 80 450 200 600 140' fill='none' stroke='rgba(255, 255, 255, 0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: 
    var(--wave-pattern),
    radial-gradient(circle at 10% 20%, rgba(214, 48, 49, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(155, 89, 182, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--light);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
}

[dir="ltr"] body {
  font-family: var(--font-en);
}

.hidden {
  display: none !important;
}

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

ul {
  list-style: none;
}

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

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

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

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  position: relative;
}

/* اللوجو دائماً على اليمين بغض النظر عن اللغة */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  direction: ltr;
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-placeholder {
  width: 120px;
  height: 44px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo-placeholder.small {
  width: 60px;
  height: 28px;
  font-size: 0.55rem;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[dir="rtl"] .logo-text {
  direction: rtl;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  /* Always centered in the navbar regardless of logo/button positions */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  direction: rtl;
}

.nav-links a {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* زر اللغة دائماً على اليسار بغض النظر عن اللغة */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Lock lang-btn so it never shifts on RTL/LTR toggle */
.lang-btn {
  background: var(--grad);
  border: none;
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.3s;
  direction: ltr;
  unicode-bidi: embed;
}

.lang-btn:hover {
  opacity: 0.8;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero background image — full-bleed, behind overlay and content */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-loading {
  background: linear-gradient(135deg, #05050b, #140814, #05050b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease-in-out, transform 6s ease-in-out;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(5, 5, 13, 0.98) 0%, rgba(5, 5, 13, 0.6) 40%, rgba(5, 5, 13, 0.2) 100%),
    linear-gradient(to right, rgba(5, 5, 13, 0.4) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 860px;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-badge {
  position: relative;
  display: inline-block;
  color: #F1F1F1;
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  background: rgba(8, 8, 16, 0.9);
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(214, 48, 49, 0.3), inset 0 0 10px rgba(155, 89, 182, 0.1);
  z-index: 1;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--red), var(--purple), var(--red));
  background-size: 200% auto;
  z-index: -1;
  animation: badgeGlow 3s linear infinite;
  opacity: 0.85;
}

@keyframes badgeGlow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 80px rgba(214, 48, 49, 0.3), 0 4px 40px rgba(0, 0, 0, 0.9);
  line-height: 1.25;
}

.hero-sub {
  color: var(--gray);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s infinite;
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.2);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 48, 49, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-articles-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .btn-articles-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-articles-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--grad);
}

.btn-book {
  display: block;
  text-align: center;
  background: var(--bg2);
  border: 1px solid rgba(214, 48, 49, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.1);
  margin-top: 1rem;
}

.btn-book:hover {
  background: rgba(214, 48, 49, 0.1);
  border-color: rgba(214, 48, 49, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 48, 49, 0.3);
}

.car-btn-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.car-btn-row .btn-book {
  flex: 1;
  margin-top: 0;
}

.btn-view-car {
  display: block;
  text-align: center;
  background: var(--bg3);
  border: 1px solid rgba(155, 89, 182, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1;
}

.btn-view-car:hover {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  margin-top: 1.5rem;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
  font-size: 1.3rem;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.5rem 2.5rem;
  border-left: 1px solid var(--border);
  flex: 1;
  min-width: 200px;
  transition: background 0.3s;
}

.feature-item:first-child {
  border-left: none;
}

.feature-item:hover {
  background: rgba(192, 57, 43, 0.05);
}

.feature-item i {
  font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-item span {
  font-weight: 600;
  color: var(--light);
  font-size: 0.95rem;
}

/* ===== SECTION COMMON ===== */
section {
  padding: 6rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 48, 49, 0.3), rgba(155, 89, 182, 0.3), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

/* Tech decorative nodes for headers */
.section-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--red);
}

.section-header::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--purple);
  z-index: 2;
}

.section-tag {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
}

.text-center {
  text-align: center;
  margin-top: 3rem;
}

/* ===== CARS GRID ===== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto 1.5rem;
}

.car-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 48, 49, 0.3);
  box-shadow: 0 10px 30px rgba(214, 48, 49, 0.15);
}

.car-img-placeholder {
  height: 190px;
  background: radial-gradient(ellipse at 60% 40%, #2d0a1a 0%, #1a0520 40%, #05050d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(214, 48, 49, 0.1);
  position: relative;
  overflow: hidden;
}

.car-img-placeholder::before {
  content: '🚗';
  position: absolute;
  font-size: 5rem;
  opacity: 0.07;
  filter: grayscale(1);
}

.car-img-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(214, 48, 49, 0.06), transparent);
}

.car-info {
  padding: 1.2rem;
}

.car-info h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.car-info p {
  color: var(--gray);
  font-size: 0.85rem;
}

.car-price {
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.badge-available {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--grad);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

/* ===== FLEET SECTION ===== */
.fleet-section {
  background: var(--bg2);
}

.fleet-category {
  margin-bottom: 4rem;
}

.category-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 1;
}
.category-title::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-tech);
  background-size: 200% auto;
  border-radius: 52px;
  z-index: -1;
  opacity: 0.5;
  animation: techGradient 4s linear infinite;
}

.category-title.premium {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.15), rgba(142, 68, 173, 0.15));
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #e8a0a0;
}

.category-title.mid {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(142, 68, 173, 0.1));
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: #90c0e8;
}

.category-title.eco {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(52, 152, 219, 0.1));
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #90d8a0;
}

.category-title.suv {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(211, 84, 0, 0.15));
  border: 1px solid rgba(230, 126, 34, 0.3);
  color: #f39c12;
}

.category-title.large {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.15));
  border: 1px solid rgba(155, 89, 182, 0.3);
  color: #c9a0e8;
}

.category-title.sedan {
  background: linear-gradient(135deg, rgba(52, 73, 94, 0.15), rgba(44, 62, 80, 0.15));
  border: 1px solid rgba(52, 73, 94, 0.3);
  color: #bdc3c7;
}

.category-title.family {
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.15), rgba(22, 160, 133, 0.15));
  border: 1px solid rgba(26, 188, 156, 0.3);
  color: #1abc9c;
}

/* ===== QUICK FLEET ===== */
.quick-fleet {
  background: var(--bg);
}

/* ===== SERVICES ===== */
.services-section {
  background: var(--bg);
}

.services-grid {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 48, 49, 0.3);
  box-shadow: 0 10px 30px rgba(214, 48, 49, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(214, 48, 49, 0.15), rgba(155, 89, 182, 0.15));
  border: 1px solid rgba(214, 48, 49, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(214, 48, 49, 0.1);
}

.service-icon i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ===== ABOUT ===== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 48, 49, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseGlow 4s alternate infinite;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(155, 89, 182, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseGlow 5s alternate infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text .section-tag {
  display: block;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.9;
}

.about-tagline {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1rem;
  border-right: 4px solid var(--red);
  padding-right: 1rem;
  margin-top: 1.5rem !important;
}

[dir="ltr"] .about-tagline {
  border-right: none;
  border-left: 4px solid var(--red);
  padding-right: 0;
  padding-left: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--gray);
  font-size: 0.8rem;
}

.about-img-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #1a0a20, #200a10);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: var(--glow);
  position: relative;
}

.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-tech);
  background-size: 200% auto;
  border-radius: calc(var(--radius) + 2px);
  z-index: -1;
  opacity: 0.5;
  animation: techGradient 4s linear infinite;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-item i {
  font-size: 1.5rem;
  margin-top: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-item h3 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--red);
}

/* ===== FORM ===== */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group label {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--gray);
  font-size: 0.85rem;
  transition: all 0.3s;
  pointer-events: none;
}

[dir="ltr"] .form-group label {
  right: auto;
  left: 16px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--red);
  background: var(--card);
  padding: 0 6px;
}

.form-group select {
  color: var(--gray);
}

.form-group select option {
  background: var(--bg2);
  color: var(--white);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ===== MAP ===== */
.map-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

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

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

@keyframes bounce {

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

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

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }

  50% {
    box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.mobile-corp-btn {
  display: none;
}

/* ===== RESPONSIVE ===== */

/* Tablets & Below */
@media (max-width: 991px) {
  .about-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about-tagline { border-right: none; border-left: none; border-bottom: 3px solid var(--red); padding: 0 0 0.5rem 0; display: inline-block; }
  .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
}

/* Mobile & Tablet Devices (All non-desktop screens) */
@media (max-width: 1024px) {
  #header { 
    background: rgba(5, 5, 13, 0.99) !important; 
    height: auto !important;
  }

  .navbar { 
    height: auto !important; 
    min-height: 85px !important;
    padding: 10px 1.5rem !important; 
    display: flex !important; 
    /* direction: ltr is the KEY fix — forces flex LTR always so order values stay consistent */
    flex-direction: row !important;
    direction: ltr !important;
    justify-content: space-between !important; 
    align-items: center !important; 
    position: relative !important;
    overflow: visible !important;
  }

  /* RESET: Override desktop absolute positioning for all mobile/tablet sizes */
  .nav-logo, .nav-actions, .nav-links, .nav-center,
  [dir="ltr"] .nav-logo, [dir="ltr"] .nav-actions,
  [dir="rtl"] .nav-logo, [dir="rtl"] .nav-actions {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    flex: none !important;
    margin: 0 !important;
  }

  .nav-center { 
    display: flex !important; 
    order: 2 !important; 
    align-items: center; 
    justify-content: center; 
    flex: 1; 
  }
  
  .mobile-corp-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    animation: mobilePulse 1.5s infinite alternate;
    box-shadow: 0 2px 10px rgba(214, 48, 49, 0.4);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: inherit;
  }
  
  @keyframes mobilePulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(214, 48, 49, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(155, 89, 182, 0.6); }
  }

  /* ← Lang button: ALWAYS leftmost (order:1 in ltr flex) */
  .nav-actions { 
    order: 1 !important; 
    display: flex !important; 
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 60px !important;
  }

  /* Logo: ALWAYS rightmost (order:3 in ltr flex) */
  .nav-logo { 
    order: 3 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 2px !important; 
  }

  .logo-placeholder { 
    width: 80px !important; 
    height: 32px !important; 
    order: 1 !important;
  }

  .logo-text { 
    order: 2 !important;
    font-size: 0.75rem !important; 
    line-height: 1.2 !important;
    text-align: center !important;
    background: var(--grad) !important; 
    -webkit-background-clip: text !important; 
    -webkit-text-fill-color: transparent !important; 
    display: block !important; 
    white-space: nowrap !important;
    font-weight: 700 !important;
  }

  .lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: var(--grad) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* COMPLETELY HIDE MENU BUTTON AND LINKS FOR MOBILE/TABLET */
  .mobile-menu-btn, #mobileMenuBtn, .nav-links { 
    display: none !important; 
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero { height: 100svh !important; padding-top: 85px !important; display: flex !important; align-items: center !important; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; line-height: 1.3 !important; }
  .features-strip { flex-direction: column !important; }
  .feature-item { padding: 1.2rem 1.5rem !important; border-left: none !important; border-bottom: 1px solid var(--border) !important; width: 100% !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  section { padding: 4rem 1.2rem !important; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 0.65rem !important; }
  .logo-placeholder { width: 75px !important; height: 30px !important; }
}