/* ===============================================
   Phoenix POS - Modern Website Styles
   =============================================== */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #3181d6;
  --secondary-color: #46c252;
  --text-color: #1b3e80;
  --heading-color: #02261d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --font-family: "Cairo", sans-serif;

  /* Background colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-mid: #e3f2fd;
  --bg-gradient-end: #e8f5e9;

  /* Card and element colors */
  --card-bg: #ffffff;
  --card-border: rgba(255, 255, 255, 0.2);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --text-color: #e2e8f0;
  --heading-color: #f1f5f9;
  --light-bg: #1e293b;
  --white: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-600: #94a3b8;
  --gray-800: #0f172a;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Background colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient-start: #1e293b;
  --bg-gradient-mid: #0f172a;
  --bg-gradient-end: #1e293b;

  /* Card and element colors */
  --card-bg: #1e293b;
  --card-border: rgba(255, 255, 255, 0.1);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Section Styles ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  direction: ltr; /* Force LTR for navigation */
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  order: 1; /* Logo on left */
}

.logo-img {
  width: 50px;
  height: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3181d6 0%, #46c252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__logo:hover .logo-text::after {
  opacity: 1;
}

.nav__menu {
  order: 2; /* Menu on right */
}

.nav__list {
  display: flex;
  gap: 35px;
  align-items: center;
  direction: rtl; /* Keep RTL for Arabic text in menu items */
}

.nav__link {
  font-weight: 600;
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
  background-color: rgba(49, 129, 214, 0.1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 1;
}

/* Language toggle inside side menu */
.nav__menu-lang-item {
  display: none;
}

/* Theme Toggle Button */
/* Theme Toggle Button */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-left: 15px;
}

/* Language toggle should display text label (EN/AR) by default */
#lang-toggle {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
  /* font-weight: 800; */
  /* font-size: 0.9rem; */
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text-color);
}

#lang-toggle:hover {
  color: #fff;
}

@media screen and (max-width: 576px) {
  #lang-toggle {
    padding: 0 10px;
    font-size: 0.85rem;
  }
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
}

.theme-toggle:hover .theme-icon {
  color: white;
}

.theme-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  color: var(--text-color);
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle:hover .theme-icon {
  color: white;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1e5fa8);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(49, 129, 214, 0.3);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e5fa8, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 129, 214, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 129, 214, 0.4);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-mid) 50%,
    var(--bg-gradient-end) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__container {
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 60px;
  align-items: center;
  z-index: 2;
  direction: ltr; /* Override RTL for this container */
}

.hero__content {
  order: 2;
  text-align: right;
  direction: rtl; /* Restore RTL for text */
}

.hero__image {
  order: 1;
  position: relative;
  opacity: 0;
  transform: translateX(-200px);
  animation: slideInAndFloat 1.2s ease-out 0.3s forwards;
  /* Force initial state to prevent flickering */
  visibility: hidden;
  animation-fill-mode: both;
}

/* English hero layout: put text on the left (LTR) and image on the right */
html[lang="en"] .hero__content {
  order: 1;
  text-align: left;
  direction: ltr;
}

html[lang="en"] .hero__image {
  order: 2;
}

.hero__image.loading {
  visibility: visible;
}

@keyframes slideInAndFloat {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }
  60% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Continuous floating animation after slide-in */
.hero__image.loaded {
  animation: floatContinuous 4s ease-in-out infinite;
}

@keyframes floatContinuous {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 25px;
  border: 2px solid rgba(49, 129, 214, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

.badge-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.hero__title {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--heading-color);
  line-height: 1.35;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final English overrides to neutralize any late RTL resets (including mobile) */
html[lang="en"] .feature,
html[lang="en"] .feature:nth-child(odd),
html[lang="en"] .feature:nth-child(even) {
  direction: ltr !important;
}

html[lang="en"] .feature .feature__content {
  direction: ltr !important;
  text-align: left !important;
}

html[lang="en"] .feature .feature__description,
html[lang="en"] .feature .feature__description ul {
  direction: ltr !important;
  text-align: left !important;
}

html[lang="en"] .feature .feature__description ul li {
  padding-left: 35px !important;
  padding-right: 0 !important;
}

html[lang="en"] .feature .feature__description ul li::before {
  left: 0 !important;
  right: auto !important;
}

.highlight {
  display: block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
  line-height: 1.4;
}

.hero__description {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 2;
  margin-top: 10px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-arrow {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(-5px);
}

/* Global button text and icon styling */
.btn-text {
  display: inline-block;
}

.btn-icon {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  margin-right: 5px;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
  transform: translateX(-5px);
}

.btn-secondary .btn-icon {
  margin-right: 8px;
}

/* Decorative Elements */
.hero__decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.8;
  }
}

/* ===== Video Section ===== */
.video-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.video-section--alt {
  background: var(--bg-secondary);
}

.video-section__header {
  text-align: center;
  margin-bottom: 50px;
}

.video-section__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--heading-color);
  margin-bottom: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-section__subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.video-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.video-container:hover {
  box-shadow: 0 25px 80px rgba(49, 129, 214, 0.4);
  transform: translateY(-5px);
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-container:hover .thumbnail-img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.play-button svg {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
}

.play-button:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 15px 40px rgba(49, 129, 214, 0.6));
}

.play-text {
  display: none;
}

#youtube-iframe,
#youtube-iframe-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

/* ===== About Section ===== */
.about {
  background-color: var(--bg-primary);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.about__card {
  padding: 35px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

/* Animation states */
.about__card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When card is visible */
.about__card.visible,
.about__card[style*="opacity: 1"] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered animation delays for each card */
.about__card:nth-child(1) {
  transition-delay: 0.1s;
}

.about__card:nth-child(2) {
  transition-delay: 0.25s;
}

.about__card:nth-child(3) {
  transition-delay: 0.4s;
}

.about__card:nth-child(4) {
  transition-delay: 0.55s;
}

.about__card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg);
}

.card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Icon animation when card is visible */
.about__card[style*="opacity: 1"] .card__icon,
.about__card.visible .card__icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Staggered icon animations */
.about__card:nth-child(1) .card__icon {
  transition-delay: 0.2s;
}

.about__card:nth-child(2) .card__icon {
  transition-delay: 0.35s;
}

.about__card:nth-child(3) .card__icon {
  transition-delay: 0.5s;
}

.about__card:nth-child(4) .card__icon {
  transition-delay: 0.65s;
}

.card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.card__text {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== System Showcase Section ===== */
.system-showcase {
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-mid) 50%,
    var(--bg-gradient-end) 100%
  );
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase__image {
  position: relative;
}

.image-wrapper {
  position: relative;
  transition: transform 0.5s ease;
}

.image-wrapper:hover {
  transform: translateY(-10px);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.image-decoration {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.1;
  z-index: -1;
}

.decoration-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -50px;
}

.decoration-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -40px;
}

.showcase__content {
  padding: 0 20px;
}

.showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 25px;
  border: 2px solid rgba(49, 129, 214, 0.2);
}

.showcase__badge .badge-icon {
  font-size: 1.2rem;
}

.showcase__badge .badge-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.showcase__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--heading-color);
  line-height: 1.3;
  margin-bottom: 20px;
}

.showcase__description {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 35px;
}

.showcase__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

/* English page overrides: ensure LTR text flow without changing feature layout */
html[lang="en"] .feature .feature__content {
  direction: ltr !important;
  text-align: left !important;
}

html[lang="en"] .feature .feature__title,
html[lang="en"] .feature .feature__description {
  text-align: left !important;
}

html[lang="en"] .feature {
  /* avoid RTL inheritance affecting children */
  direction: ltr !important;
}

html[lang="en"] .feature .feature__description ul {
  direction: ltr !important;
  text-align: left;
}

html[lang="en"] .feature .feature__description ul li {
  padding-left: 35px;
  padding-right: 0;
}

html[lang="en"] .feature .feature__description ul li::before {
  left: 0;
  right: auto;
}

.showcase__feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.showcase__feature:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

.showcase__feature .feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.showcase__feature .feature-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.showcase__feature .feature-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.showcase__cta {
  margin-top: 35px;
}

/* ===== Features Section ===== */
.features {
  background: var(--bg-secondary);
  padding: 100px 0 60px 0;
}

.features__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Odd items (1, 3, 5...) - Image on RIGHT, Text on LEFT */
.feature:nth-child(odd) {
  direction: rtl;
}

.feature:nth-child(odd) .feature__image {
  grid-column: 2;
  grid-row: 1;
}

.feature:nth-child(odd) .feature__content {
  grid-column: 1;
  grid-row: 1;
  direction: rtl;
}

/* Even items (2, 4, 6...) - Image on LEFT, Text on RIGHT */
.feature:nth-child(even) {
  direction: rtl;
}

.feature:nth-child(even) .feature__image {
  grid-column: 1;
  grid-row: 1;
}

.feature:nth-child(even) .feature__content {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
}

.feature__image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.feature__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.feature:hover .feature__image::before {
  opacity: 1;
}

.feature:hover .feature__image {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(49, 129, 214, 0.25);
}

.feature__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.feature:hover .feature__image img {
  transform: scale(1.08);
}

.feature__content {
  padding: 20px 0;
}

.feature__number {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.feature__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.feature__title-highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature__description {
  color: var(--gray-600);
  line-height: 1.9;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.feature__description ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature__description ul li {
  position: relative;
  padding-right: 35px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature__description ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0 0;
}

.feature__list li {
  position: relative;
  padding-right: 35px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature__list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.features__loading {
  text-align: center;
  margin-top: 60px;
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block;
}

.features__loading.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Prevent layout shifts during feature loading */
.feature-new {
  will-change: opacity, transform;
}

/* ===== Benefits Section ===== */
.benefits {
  background: var(--bg-primary);
  padding: 100px 0;
  position: relative;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.benefit-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  width: 100%;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: all 0.4s ease;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(49, 129, 214, 0.3);
  border-color: var(--primary-color);
}

.benefit-card__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(49, 129, 214, 0.3);
}

.benefit-card:hover .benefit-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(49, 129, 214, 0.4);
}

.benefit-card__icon svg {
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.benefit-card:hover .benefit-card__icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.benefit-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-card__title {
  transform: translateY(-2px);
  color: var(--white);
}

.benefit-card__text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-card__text {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* Decorative elements for benefits cards */
.benefit-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transition: all 0.6s ease;
  opacity: 0;
  z-index: 1;
}

.benefit-card:hover::after {
  opacity: 1;
  top: -30%;
  right: -30%;
}

/* ===== Clients Section ===== */
.clients {
  background: var(--bg-secondary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.clients .section-header {
  margin-bottom: 50px;
}

.clients__carousel {
  margin: 100px auto;
  width: 90%;
  display: flex;
  overflow-x: auto;
  mask: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.clients__carousel::-webkit-scrollbar {
  display: none;
}

/* English locale: reverse direction */
html[lang="en"] .clients__carousel {
  direction: rtl;
}

.clients__group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  animation: scroll-infinite 15s infinite linear;
  padding-right: 60px;
  padding-top: 16px;
  padding-bottom: 16px;
}

@keyframes scroll-infinite {
  from {
    translate: 100%;
  }
  to {
    translate: 0;
  }
}

.client__logo {
  border: 1px solid var(--gray-200);
  flex: 0 0 5em;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.client__logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.05),
    rgba(70, 194, 82, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client__logo:hover::before {
  opacity: 1;
}

.client__logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(49, 129, 214, 0.15);
}

.client__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* filter: grayscale(100%) opacity(0.7); */
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.client__logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.clients__carousel:hover .clients__group {
  animation-play-state: paused;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e1ecff" fill-opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

.testimonials .container {
  position: relative;
  z-index: 2;
}

.testimonials .section-header {
  margin-bottom: 60px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 30px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(49, 129, 214, 0.15);
}

.testimonial-card--featured {
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.testimonial-card--featured::before {
  display: none; /* Hide the colored top border on featured card */
}

.testimonial-card__content {
  margin-bottom: 30px;
}

.testimonial-card__quote {
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.testimonial-card__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0;
  position: relative;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author__avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}

.author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author__info {
  flex: 1;
}

.author__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 5px 0;
}

.author__title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 8px 0;
}

.author__rating {
  display: flex;
  gap: 2px;
}

.author__rating .star {
  font-size: 14px;
  color: #ffc107;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--bg-primary);
  color: var(--text-color);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* Moving Bubbles Animation */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.03) 0%,
    rgba(70, 194, 82, 0.03) 100%
  );
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.cta__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.cta__text {
  font-size: 1.3rem;
  margin-bottom: 45px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color);
}

.cta__text strong {
  color: var(--heading-color);
  font-weight: 700;
}

.cta__buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1e5fa8);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(49, 129, 214, 0.3);
  border: none;
  position: relative;
  z-index: 10;
}

.cta .btn-primary:hover {
  background: linear-gradient(135deg, #1e5fa8, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(49, 129, 214, 0.4);
}

.cta .btn-primary:hover::before {
  left: 100%;
}

.cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(49, 129, 214, 0.2);
  position: relative;
  z-index: 10;
}

.cta .btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(49, 129, 214, 0.4);
}

/* Decorative Elements - Simple like hero */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* CTA Decoration */
.cta__decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cta-circle-1 {
  width: 250px;
  height: 250px;
  top: 15%;
  right: 8%;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.08),
    rgba(70, 194, 82, 0.08)
  );
  animation-delay: 0s;
}

.cta-circle-2 {
  width: 180px;
  height: 180px;
  bottom: 25%;
  right: 20%;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.06),
    rgba(70, 194, 82, 0.06)
  );
  animation-delay: 2s;
}

.cta-circle-3 {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 12%;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.07),
    rgba(70, 194, 82, 0.07)
  );
  animation-delay: 4s;
}

/* CTA Badge */
.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 30px;
  border: 1px solid var(--card-border);
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.cta__badge .badge-icon {
  font-size: 1.2rem;
  transform: rotate(-45deg);
  display: inline-block;
  animation: rocketLaunch 3s ease-in-out infinite;
}

@keyframes rocketLaunch {
  0%,
  100% {
    transform: rotate(-45deg) translateY(0px);
  }
  50% {
    transform: rotate(-45deg) translateY(-3px);
  }
}

.cta__badge .badge-text {
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA Button Icons */
.cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.cta .btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cta .btn:hover .btn-icon {
  transform: translateX(-5px);
}

/* CTA Features */
.cta__features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--card-bg);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.cta__feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.cta__feature .feature-icon {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.info__card {
  padding: 35px 30px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  position: relative;
  /* overflow: hidden; */ /* Keep commented to avoid cropping content on mobile */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 19px 19px 0 0;
  display: none; /* Hide the top border for contact cards */
}

.info__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(49, 129, 214, 0.3);
}

.info__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

.info__card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  .contact__links {
    gap: 12px;
  }
  .phone__group {
    gap: 6px;
  }
  color: var(--heading-color);
  margin-bottom: 15px;
  text-align: center;
}

.info__description {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 15px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(49, 129, 214, 0.05);
  border-radius: 12px;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  justify-content: center;
  min-height: 44px; /* touch-friendly target */
}

.contact__link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(-3px);
}

.contact__link--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.contact__link--whatsapp:hover {
  background: #25d366;
  color: var(--white);
}

.phone__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.phone__actions {
  display: flex;
  gap: 8px;
}

.phone__actions .contact__link {
  flex: 1;
  font-size: 0.85rem;
  padding: 10px 12px;
}

.working__hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(49, 129, 214, 0.05);
  border-radius: 10px;
}

.day {
  font-weight: 600;
  color: var(--text-color);
}

.time {
  color: var(--primary-color);
  font-weight: 500;
}

.emergency__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 12px 16px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.1),
    rgba(34, 197, 94, 0.05)
  );
  border-radius: 10px;
  color: #22c55e;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Enhanced card content styles */
.card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email__features,
.phone__features {
  margin: 20px 0;
  flex: 1;
}

.feature__item,
.benefit__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(49, 129, 214, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.feature__item svg,
.benefit__item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.support__hours {
  margin-bottom: 20px;
}

.support__hours h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  text-align: center;
}

.hours__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours__grid .hours__item {
  background: rgba(49, 129, 214, 0.05);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hours__grid .day {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.hours__grid .time {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form {
  background: var(--card-bg);
  padding: 45px 40px;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  position: relative;
}

.form__header {
  text-align: center;
  margin-bottom: 35px;
}

.form__header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.form__header p {
  color: var(--text-light);
  font-size: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  margin-bottom: 25px;
  position: relative;
}

.form__group label {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
  color: var(--text-color);
}

.form__group select {
  cursor: pointer;
  padding-right: 20px;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(49, 129, 214, 0.1);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(49, 129, 214, 0.3);
}

/* Contact decoration */
.contact__decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-circle-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(49, 129, 214, 0.1),
    rgba(70, 194, 82, 0.1)
  );
  border-radius: 50%;
  filter: blur(3px);
}

.contact-circle-2 {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    rgba(70, 194, 82, 0.08),
    rgba(49, 129, 214, 0.08)
  );
  border-radius: 50%;
  filter: blur(3px);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--gray-800);
  color: var(--white);
  padding: 50px 0 30px;
  border-top: 1px solid var(--card-border);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer__about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__logo img {
  width: 80px;
  height: auto;
}

.footer__logo .logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3181d6 0%, #46c252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer__text {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  text-align: center;
}

.footer__links h3,
.footer__contact h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer__links ul li,
.footer__contact ul li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--secondary-color);
}

.footer__contact ul li {
  color: rgba(255, 255, 255, 0.75);
}

.footer__contact ul li a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  text-decoration: none;
}

.footer__contact ul li a:hover {
  color: var(--secondary-color);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #2563b8);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

/* ===== Responsive Design ===== */
/* Medium screens (tablets) */
/* ===== Responsive Design ===== */
/* Wide Tablets and Small Desktops (1320px and below) */
@media screen and (max-width: 1320px) {
  .hero {
    padding: 0 60px;
  }
}

/* Large Tablets and Small Desktops (1200px and below) */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .showcase__grid {
    gap: 50px;
  }

  .showcase__title {
    font-size: 2rem;
  }

  .benefits__grid {
    gap: 20px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .testimonial-card--featured {
    transform: scale(1.03);
  }

  .clients__group {
    gap: 40px;
  }

  .footer__content {
    gap: 40px;
  }
}

/* Fix About Grid Layout (1169px and below) */
@media screen and (max-width: 1170px) {
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets and Small Laptops (1024px and below) */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }

  .hero__content {
    order: 2;
    text-align: center;
  }

  .hero__image {
    order: 1;
    max-width: 450px;
    margin: 0 auto;
  }

  /* Keep LTR text alignment on English even on mobile, but preserve stacking order */
  html[lang="en"] .hero__content {
    order: 2 !important; /* text under the image */
    text-align: center; /* match Arabic on mobile */
    direction: ltr; /* keep English text flow */
  }

  html[lang="en"] .hero__image {
    order: 1 !important; /* image on top */
    margin: 0 auto; /* keep centered */
  }

  .hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero__description {
    font-size: 1.05rem;
  }

  .hero__buttons {
    gap: 15px;
    justify-content: center;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .showcase__title {
    font-size: 2.2rem;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase__image {
    order: 1;
  }

  .showcase__content {
    order: 2;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Medium Tablets (968px and below) */
@media screen and (max-width: 968px) {
  .theme-toggle {
    margin-left: 0;
    margin-right: 15px;
  }
  /* Mobile menu overlay backdrop */
  .nav__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1001;
  }

  .nav__backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(
      180deg,
      var(--card-bg) 0%,
      var(--bg-secondary) 100%
    );
    box-shadow: 8px 0 50px rgba(0, 0, 0, 0.3);
    padding: 80px 0 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    order: 3;
    z-index: 1002;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .nav__menu.show {
    left: 0;
  }

  /* Menu Header Decoration */
  .nav__menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--secondary-color)
    );
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 20px 20px;
  }

  .nav__item {
    border-bottom: none;
    animation: slideInMenu 0.5s ease-out backwards;
    margin-bottom: 8px;
  }

  /* Language toggle inside side menu */
  .nav__menu-lang-item {
    display: block;
    margin-top: 12px;
    padding: 12px 20px 0;
    position: relative;
  }
  .nav__menu-lang-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
  }
  .nav__menu-lang-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    color: #fff;
    overflow: visible !important;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .nav__menu-lang-toggle:hover {
    box-shadow: var(--shadow-md);
    filter: brightness(1.03);
  }

  /* English-only: make the side menu LTR and left-aligned */
  html[lang="en"] .nav__menu {
    direction: ltr;
  }
  html[lang="en"] .nav__list {
    direction: ltr;
    align-items: stretch;
  }
  html[lang="en"] .nav__menu .nav__link {
    text-align: left;
    direction: ltr;
  }

  .nav__item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav__item:nth-child(2) {
    animation-delay: 0.15s;
  }
  .nav__item:nth-child(3) {
    animation-delay: 0.2s;
  }
  .nav__item:nth-child(4) {
    animation-delay: 0.25s;
  }

  @keyframes slideInMenu {
    from {
      opacity: 0;
      transform: translateX(-40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    background: transparent;
    border: 2px solid transparent;
    position: relative;
  }

  .nav__link::after {
    content: "←";
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
  }

  .nav__link:hover::after,
  .nav__link.active::after {
    opacity: 1;
    transform: translateX(0);
  }

  .nav__link:hover,
  .nav__link.active {
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(49, 129, 214, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav__link:active {
    transform: translateX(-5px) scale(0.97);
  }

  /* Add menu footer decoration */
  .nav__menu::after {
    content: "";
    margin-top: auto;
    padding: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.5;
    border-top: 1px solid var(--card-border);
  }

  .nav__logo {
    order: 1;
    z-index: 1003;
    position: relative;
  }

  .nav__toggle {
    display: flex;
    order: 2;
    z-index: 1003;
    position: relative;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 40px;
    direction: rtl;
  }

  .hero__content {
    order: 2;
    text-align: center;
    direction: rtl;
  }

  .hero__image {
    order: 1;
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
  }

  .hero__image img {
    animation: slideInAndFloat 1.2s ease-out both;
    width: 100%;
    height: auto;
  }

  .hero__image.loaded img {
    animation: slideInAndFloat 1.2s ease-out both,
      floatContinuous 4s ease-in-out 1.5s infinite;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .features {
    padding: 60px 0;
  }

  .features__container {
    gap: 50px;
  }

  .feature {
    grid-template-columns: 1fr !important;
    gap: 30px;
    direction: rtl !important;
  }

  /* Reset grid positioning for mobile - always image on top */
  .feature:nth-child(odd) .feature__image,
  .feature:nth-child(even) .feature__image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 300px;
  }

  .feature:nth-child(odd) .feature__content,
  .feature:nth-child(even) .feature__content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    direction: rtl !important;
  }

  .feature__image img {
    height: 300px;
  }

  .feature__title {
    font-size: 1.8rem;
  }

  .feature__description {
    font-size: 1rem;
  }

  .system-showcase {
    padding: 60px 0;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .showcase__image {
    order: 1;
  }

  .showcase__content {
    order: 2;
    padding: 0;
  }

  .showcase__title {
    font-size: 2rem;
  }

  .showcase__description {
    font-size: 1rem;
  }

  .showcase__features {
    gap: 15px;
  }

  .showcase__feature {
    padding: 15px;
  }

  .showcase__feature .feature-icon {
    font-size: 1.5rem;
  }

  .showcase__feature .feature-text h4 {
    font-size: 1.1rem;
  }

  .showcase__feature .feature-text p {
    font-size: 0.9rem;
  }

  .video-section {
    padding: 60px 0;
  }

  .video-section__title {
    font-size: 2rem;
  }

  .video-section__subtitle {
    font-size: 1rem;
  }

  .video-wrapper {
    padding: 0 10px;
  }

  .play-button svg {
    width: 60px;
    height: 60px;
  }

  .play-text {
    font-size: 1.1rem;
    padding: 8px 20px;
  }

  .decoration-circle {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) {
    direction: rtl;
  }

  .testimonials__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form {
    padding: 35px 25px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form__header h3 {
    font-size: 1.5rem;
  }

  .info__card {
    padding: 25px 20px;
  }
  /* Phone row: number + two icons on one line */
  .phone__actions {
    display: grid;
    grid-template-columns: 1fr 48px; /* call (with number) + WhatsApp icon */
    align-items: center;
    gap: 10px;
  }

  .phone__actions .contact__link {
    font-size: 1rem;
    padding: 12px 14px;
  }

  /* Make WhatsApp a compact circular icon-only button on mobile */
  .phone__actions .contact__link--whatsapp {
    padding: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }
  .phone__actions .contact__link--whatsapp span {
    display: none;
  }

  /* Slightly refine the call pill */
  .phone__actions .contact__link--call {
    background: rgba(49, 129, 214, 0.06);
  }

  .contact-circle-1,
  .contact-circle-2 {
    display: none;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer__about {
    order: 1;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer__logo img {
    width: 70px;
  }

  .footer__logo .logo-text {
    font-size: 1.6rem;
  }

  .footer__text {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .footer__links {
    order: 2;
  }

  .footer__links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .footer__links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer__links ul li {
    margin-bottom: 0;
  }

  .footer__links ul li a {
    padding: 8px 16px;
    background: rgba(49, 129, 214, 0.1);
    border-radius: 8px;
    display: inline-block;
  }

  .footer__contact {
    order: 3;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer__contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .footer__contact ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .footer__bottom {
    padding-top: 25px;
    margin-top: 30px;
  }

  .footer__bottom p {
    font-size: 0.9rem;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta__title {
    font-size: 2.2rem;
  }

  .cta__text {
    font-size: 1.1rem;
  }

  .cta__features {
    gap: 25px;
  }

  .cta__feature {
    font-size: 0.9rem;
  }
}

/* Medium Tablets (880px and below) */
@media screen and (max-width: 880px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
/* Tablets in Portrait Mode (768px and below) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__description {
    font-size: 1.05rem;
  }

  .hero__badge {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 1.05rem;
  }

  .showcase__grid {
    gap: 40px;
  }

  .showcase__title {
    font-size: 1.9rem;
  }

  .showcase__features {
    gap: 12px;
  }

  .feature__title {
    font-size: 1.7rem;
  }

  .benefits__grid {
    gap: 25px;
  }

  .benefit-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonial-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonial-card--featured {
    transform: scale(1);
  }

  .clients__group {
    gap: 30px;
  }

  .cta__title {
    font-size: 2.2rem;
  }

  .cta__text {
    font-size: 1.1rem;
  }

  .cta__buttons {
    gap: 15px;
  }

  .cta__features {
    gap: 20px;
  }

  .cta__feature {
    padding: 10px 18px;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

  .footer__links ul {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile Devices (576px and below) */
@media screen and (max-width: 576px) {
  .container {
    padding: 0 20px;
  }

  /* Header adjustments */
  .logo-img {
    width: 45px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  /* English-only: slightly smaller logo text on mobile to avoid wrapping */
  html[lang="en"] .logo-text {
    font-size: 1rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-left: 0; /* equalize spacing between toggles on mobile */
  }

  .nav__menu {
    max-width: 300px;
  }

  /* Ensure side menu language toggle stays full width on small screens */
  .nav__menu-lang-toggle {
    width: 100% !important;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  /* Hide header language toggle at very small widths; use menu toggle instead */
  @media screen and (max-width: 410px) {
    #lang-toggle {
      display: none;
    }
  }

  /* Hero Section */
  .hero {
    padding: 120px 0 40px;
  }

  .hero__title {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .hero__badge {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-large {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    justify-content: center;
  }

  /* Sections spacing */
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* About Section */
  .about {
    padding: 60px 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about__card {
    padding: 25px 20px;
  }

  .card__title {
    font-size: 1.2rem;
  }

  .card__text {
    font-size: 0.95rem;
  }

  /* System Showcase */
  .system-showcase {
    padding: 60px 0;
  }

  .showcase__badge {
    padding: 8px 16px;
    display: flex;
    justify-content: center;
  }

  .showcase__badge .badge-text {
    font-size: 0.85rem;
  }

  .showcase__title {
    font-size: 1.6rem;
    text-align: center;
  }

  .showcase__description {
    font-size: 0.95rem;
    text-align: center;
  }

  .showcase__feature {
    padding: 12px;
  }

  .showcase__feature .feature-text h4 {
    font-size: 1rem;
  }

  .showcase__feature .feature-text p {
    font-size: 0.85rem;
  }

  .decoration-1,
  .decoration-2 {
    display: none;
  }

  /* Features Section */
  .features {
    padding: 60px 0;
  }

  .feature__title {
    font-size: 1.5rem;
  }

  .feature__description {
    font-size: 0.95rem;
  }

  .feature__image {
    height: 250px !important;
  }

  .feature__image img {
    height: 250px;
  }

  /* Video Section */
  .video-section {
    padding: 60px 0;
  }

  .video-section__title {
    font-size: 1.8rem;
  }

  .video-section__subtitle {
    font-size: 0.95rem;
  }

  .play-button svg {
    width: 50px;
    height: 50px;
  }

  .play-text {
    font-size: 1rem;
    padding: 8px 16px;
  }

  /* Benefits Section */
  .benefits {
    padding: 60px 0;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card {
    padding: 30px 20px;
  }

  .benefit-card__icon {
    width: 70px;
    height: 70px;
  }

  .benefit-card__title {
    font-size: 1.15rem;
  }

  .benefit-card__text {
    font-size: 0.92rem;
  }

  /* Clients Section */
  .clients {
    padding: 60px 0;
  }

  /* Testimonials Section */
  .testimonials {
    padding: 60px 0;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 25px 18px 20px;
  }

  .testimonial-card--featured {
    transform: scale(1);
  }

  .testimonial-card__text {
    font-size: 0.95rem;
  }

  .author__avatar {
    width: 50px;
    height: 50px;
  }

  .author__name {
    font-size: 1rem;
  }

  .author__title {
    font-size: 0.85rem;
  }

  /* CTA Section */
  .cta {
    padding: 70px 0;
  }

  .cta__title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .cta__text {
    font-size: 1rem;
  }

  .cta__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta__buttons .btn {
    width: 100%;
  }

  .cta__features {
    flex-direction: column;
    gap: 12px;
  }

  .cta__feature {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Contact Section */
  .contact {
    padding: 60px 0;
  }

  .contact__form {
    padding: 30px 20px;
  }

  .form__header h3 {
    font-size: 1.4rem;
  }

  .form__header p {
    font-size: 0.9rem;
  }

  .form__group input,
  .form__group textarea,
  .form__group select {
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .form__group label {
    font-size: 0.95rem;
  }

  .btn-block {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .info__card {
    padding: 20px 16px;
  }

  .info__icon {
    width: 60px;
    height: 60px;
  }

  .info__card h3 {
    font-size: 1.2rem;
  }

  .info__description {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 25px;
  }

  .footer__logo img {
    width: 60px;
  }

  .footer__logo .logo-text {
    font-size: 1.4rem;
  }

  .footer__text {
    font-size: 0.9rem;
  }

  .footer__links h3,
  .footer__contact h3 {
    font-size: 1.15rem;
  }

  .footer__links ul li a,
  .footer__contact ul li {
    font-size: 0.9rem;
  }

  .footer__bottom {
    padding-top: 20px;
    margin-top: 25px;
  }

  .footer__bottom p {
    font-size: 0.85rem;
  }

  /* Scroll to top button */
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    left: 20px;
    font-size: 1.3rem;
  }
}
@media screen and (max-width: 480px) {
  .theme-toggle {
    margin-left: 0;
    margin-right: 0;
  }
}
/* Very small devices: hide header language toggle, rely on side menu toggle */
@media screen and (max-width: 410px) {
  #lang-toggle {
    display: none;
  }
}

/* Mobile Devices (576px and below) */
@media screen and (max-width: 340px) {
  .logo-text {
    font-size: 1rem;
  }
  .logo-img {
    width: 40px;
  }
  .nav__logo {
    gap: 8px;
  }
}
/* ===== Additional Hero Enhancements ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__image {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .decoration-circle {
    animation: none;
  }

  .badge-icon {
    animation: none;
  }
}

/* Image loading optimization */
.hero-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smooth scrolling for older browsers */
html {
  scroll-behavior: smooth;
}

@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}
