/* ================ المتغيرات العامة ================ */
:root {
  /* الألوان الأساسية */
  --primary-color: #0d47a1;
  --primary-dark: #093175;
  --primary-light: #e3f2fd;
  --primary-gradient: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  
  /* ألوان الخلفية */
  --bg-light: #ffffff;
  --bg-section: #f8fafc;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* ألوان النصوص */
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  
  /* ألوان البطاقات والحدود */
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --border-color: rgba(13, 71, 161, 0.1);
  
  /* الظلال */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(13, 71, 161, 0.15);
  --shadow-hover: 0 25px 60px rgba(13, 71, 161, 0.2);
  
  /* الحواف الدائرية */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  /* الانتقالات */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  
  /* المسافات */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* الطباعة */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --line-height-loose: 2;
}

/* ================ إعادة تعيين CSS ================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: var(--line-height-relaxed);
  direction: rtl;
  overflow-x: hidden;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
}

/* ================ الحاويات ================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* ================ الروابط والأزرار ================ */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================ الأقسام ================ */
section {
  padding: 120px 0;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
}

.text-center {
  text-align: center;
}

/* ================ العناوين ================ */
.section-title {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--spacing-2xl);
  color: var(--text-dark);
  text-align: center;
  line-height: var(--line-height-tight);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title span,
.section-title strong {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

/* ================ الهيدر ================ */
/* ===== الهيدر الثابت والشفاف ===== */
.header {
  position: fixed; /* يظل دائماً بالأعلى */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent; /* شفاف حتى لا يظهر مستطيل أبيض */
  box-shadow: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-overlay); /* ضبابية خفيفة */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 12px 35px;
  transition: all var(--transition-base);
}

.header-content:hover {
  box-shadow: var(--shadow-lg);
}

.logo {
  display: flex;
  align-items: center;
  z-index: 2;
}

.logo img {
  height: 48px;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: 1.05rem;
  position: relative;
  padding: var(--spacing-xs) 0;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.contact-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
  white-space: nowrap;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: var(--transition-base);
}

.menu-toggle:hover {
  color: var(--primary-color);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* ================ Hero Section ================ */
.hero {
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
  margin-top: -100px;
  height: calc(100vh + 100px);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  will-change: transform;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--spacing-md);
  padding-top: 100px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw + 1rem, 5.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-tight);
  color: var(--text-dark);
}

.hero-content h1 strong {
  color: var(--primary-color);
  text-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.hero-subtext {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-medium);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

/* ================ الأزرار ================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  z-index: -1;
  transition: transform var(--transition-smooth);
}

.primary-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 25px rgba(13, 71, 161, 0.4);
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.primary-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.5);
}

.primary-btn i {
  margin-left: 12px;
  transition: transform var(--transition-base);
}

.primary-btn:hover i {
  transform: translateX(-3px);
}

/* ================ قسم لماذا نحن ================ */
.plans-section {
  background-color: var(--bg-section);
  position: relative;
}

.plans-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-section) 100%);
  pointer-events: none;
}

.plans-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
}

.plan-item-wrapper {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all var(--transition-bounce);
}

.plan-item-wrapper.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.plan-item {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  height: 100%;
}

.plan-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-12px) scale(1.02);
  border-color: var(--border-color);
}

.item-icon {
  font-size: 2.8rem;
  color: white;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 10px 25px rgba(13, 71, 161, 0.35);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-smooth);
}

.plan-item:hover .item-icon {
  transform: scale(1.1) rotateY(360deg);
  box-shadow: 0 15px 35px rgba(13, 71, 161, 0.5);
}

.item-header {
  font-weight: var(--font-weight-black);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: var(--spacing-md) 0;
  line-height: var(--line-height-tight);
}

.item-desc {
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  font-size: 1.05rem;
}

/* ================ قسم TikTok ================ */
.tiktok-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.tiktok-carousel-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: var(--spacing-xl);
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.tiktok-carousel-inner {
  display: flex;
  direction: ltr;
  will-change: transform;
  gap: 20px;
}

.tiktok-video-card {
  min-width: 300px;
  max-width: 300px;
  margin: 0 16px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  height: 480px;
  position: relative;
  direction: rtl;
  transition: all var(--transition-smooth);
}

.tiktok-video-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.tiktok-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.tiktok-video-card:hover .tiktok-thumbnail {
  transform: scale(1.05);
}

.tiktok-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  color: white;
  text-align: right;
  transition: padding var(--transition-base);
}

.tiktok-video-card:hover .tiktok-info {
  padding: 30px 25px;
}

.tiktok-info .username {
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.watch-btn {
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.watch-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.8);
  border-color: white;
}

/* ================ قسم التقييمات ================ */
.reviews-section {
  background-color: var(--bg-section);
  position: relative;
}

.reviews-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 30px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  direction: ltr;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-light);
  max-height: 300px;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

.reviews-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.review-card {
  min-width: 400px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 25px;
  flex-shrink: 0;
  direction: rtl;
  scroll-snap-align: start;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-color);
}

.reviewer-avatar {
  flex-shrink: 0;
}

.reviewer-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--primary-light), 0 0 0 7px var(--primary-color);
  transition: transform var(--transition-base);
}

.review-card:hover .reviewer-avatar img {
  transform: scale(1.05);
}

.review-content {
  flex: 1;
}

.reviewer-name {
  font-weight: var(--font-weight-extrabold);
  font-size: 1.15rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-icon {
  color: #4caf50;
  font-size: 1rem;
}

.review-stars {
  color: #ffd700;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  display: flex;
  gap: 2px;
}

.review-comment {
  font-style: italic;
  color: var(--text-dark);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
}

.review-date {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: var(--font-weight-medium);
}

/* ================ قسم المكتب ================ */
.office-section {
  background: var(--bg-light);
}

.office-content {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 40px;
  margin-top: var(--spacing-xl);
}

.map-container {
  height: 550px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-smooth);
}

.map-container:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.office-details-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  height: 550px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-light);
  max-width: 100%;
  box-sizing: border-box;
}

.office-details-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.office-photo {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.office-details-card:hover .office-photo {
  transform: scale(1.05);
}

.contact-info {
  padding: 30px;
  flex: 1;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-tight);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

.info-item:hover {
  background-color: var(--bg-section);
}

.info-item i {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.info-item a,
.info-item p {
  color: var(--text-dark);
  margin: 0;
  font-size: 1.05rem;
  line-height: var(--line-height-normal);
  transition: color var(--transition-base);
}

.info-item a:hover {
  color: var(--primary-color);
}

/* ================ قسم الشركاء ================ */
.partners-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.partner-carousel-wrapper {
  overflow: hidden;
  margin-top: var(--spacing-xl);
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.partner-carousel {
  display: flex;
  white-space: nowrap;
  direction: ltr;
  padding: 30px 0;
  will-change: transform;
  gap: 20px;
}

.partner-logo-item {
  min-width: 180px;
  margin: 0 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-item img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5) brightness(1.1);
  transition: filter var(--transition-smooth);
}

.partner-logo-item img:hover {
  filter: grayscale(0%) opacity(1) brightness(1);
}

/* ================ الفوتر ================ */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 0 0;
  color: var(--text-light);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
  padding-bottom: 60px;
}

.footer-logo img {
  height: 45px;
  filter: brightness(0) invert(1);
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-base);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.logo-col p {
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-light);
  transition: all var(--transition-base);
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.footer-col a::before {
  content: '◄';
  position: absolute;
  right: 0;
  opacity: 0;
  transition: all var(--transition-base);
}

.footer-col a:hover {
  color: white;
  padding-right: 20px;
}

.footer-col a:hover::before {
  opacity: 1;
  right: 5px;
}

.social-links {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: 15px;
}

.social-links a {
  color: white;
  font-size: 1.25rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(13, 71, 161, 0.4);
}

.contact-col p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-light);
  transition: color var(--transition-base);
}

.contact-col p:hover {
  color: white;
}

.contact-col i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}

/* ================ الرسوم المتحركة ================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s var(--transition-smooth);
  transition-delay: var(--animation-delay, 0s);
}

.animate-fade-in-up.visible,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-effect="fade-in-scale"] {
  transform: scale(0.8);
}

.animate-on-scroll[data-effect="fade-in-scale"].visible {
  opacity: 1;
  transform: scale(1);
}

.animate-on-scroll[data-effect="fade-in-right"] {
  transform: translateX(-50px);
}

.animate-on-scroll[data-effect="fade-in-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================ زر الواتساب العائم ================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-float:active {
  transform: scale(1.05);
}

/* ================ التصميم المتجاوب ================ */

/* شاشات كبيرة جداً */
@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }
  
  section {
    padding: 140px 0;
  }
  
  .section-title {
    margin-bottom: 5rem;
  }
}

/* أجهزة اللابتوب والتابلت الأفقي */
@media (max-width: 1200px) {
  section {
    padding: 100px 0;
  }
  
  .section-title {
    margin-bottom: 3.5rem;
  }
  
  .plans-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .office-content {
    grid-template-columns: 1fr 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
  }
}

/* التابلت */
@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
  }
  
  /* الهيدر */
  .header {
    top: 10px;
    padding: 0 var(--spacing-sm);
  }
  
  .header-content {
    border-radius: var(--radius-full);
    padding: 10px 20px;
  }
  
  .logo img {
    height: 42px;
  }
  
  /* القائمة المنسدلة */
  .nav-menu {
    position: fixed;
    top: 90px; /* تبدأ أسفل الهيدر */
    right: -100%; /* مخفية خارج الشاشة */
    width: 85%;
    max-width: 350px;
    height: calc(100vh - 90px); /* تغطي باقي الشاشة */
    background: var(--card-bg);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    transition: right 0.4s ease;
    padding: 30px;
    z-index: 2000;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0 !important; /* تظهر عند الضغط */
  }

  /* إخفاء زر التواصل في الموبايل */
  .contact-btn {
    display: none;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0 30px;
  }
  
  .nav-menu li:last-child::after {
    content: 'تواصل معنا';
    display: block;
    padding: 18px 0;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
  }
  
  .nav-menu li:last-child::after:active {
    background-color: var(--bg-section);
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
    cursor: pointer;
  }

  .nav-menu a {
    display: block;
    padding: 18px 0;
    font-size: 1.15rem;
    width: 100%;
  }
  
  .nav-menu a::after {
    bottom: 8px;
    height: 2px;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1002;
  }
  
  /* Hero */
  .hero {
    padding-top: 90px; /* حتى لا يتداخل الفيديو مع الهيدر */
  }

  .hero-content {
    padding: 0 var(--spacing-lg);
  }
  
  /* الخطط */
  .plans-list {
    gap: 20px;
  }
  
  .plan-item {
    padding: 35px 25px;
  }
  
  /* المكتب */
  .office-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .map-container,
  .office-details-card {
    height: 450px;
  }
  
  /* الفوتر */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  
  .logo-col {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .logo-col .social-links {
    justify-content: center;
  }
  
  .footer-col h4::after {
    right: auto;
    left: 0;
  }

  .contact-btn {
    display: none;
  }
  
  .nav-menu ul::after {
    content: '';
    display: block;
    padding: 20px 0;
  }
}

/* الموبايل الأفقي */
@media (max-width: 768px) {
  /* زر الواتساب على الموبايل */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    bottom: 20px;
    left: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* الهيدر */
  .header {
    top: 8px;
    padding: 0 10px;
  }
  
  .header-content {
    padding: 8px 15px;
  }
  
  .logo img {
    height: 38px;
  }
  
  .nav-menu {
    width: 90%;
    max-width: 300px;
  }
  
  /* Hero */
  .hero {
    height: 75vh;
    min-height: 500px;
  }
  
  .hero-video-container {
    transform: none !important;
    height: 100%;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .hero-subtext {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }
  
  .btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  /* الخطط */
  .plans-list {
    grid-template-columns: 1fr;
  }
  
  .plan-item {
    padding: 30px 20px;
  }
  
  .item-icon {
    width: 70px;
    height: 70px;
    font-size: 2.3rem;
  }
  
  .item-header {
    font-size: 1.35rem;
  }
  
  /* TikTok */
  .tiktok-video-card {
    min-width: 270px;
    max-width: 270px;
    margin: 0 12px;
    height: 420px;
  }
  
  /* التقييمات */
  .review-card {
    min-width: 85%;
    padding: 25px;
    flex-direction: column;
    text-align: center;
  }
  
  .reviewer-avatar {
    margin: 0 auto;
  }
  
  .reviewer-name {
    justify-content: center;
  }
  
  .review-stars {
    justify-content: center;
  }
  
  /* المكتب */
  .map-container {
    height: 400px;
  }
  
  .office-details-card {
    height: auto;
    min-height: 400px;
  }
  
  .office-photo {
    height: 200px;
  }
  
  .contact-info {
    padding: 25px 20px;
  }
  
  .contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
  }
  
  /* الشركاء */
  .partner-logo-item {
    min-width: 140px;
    margin: 0 25px;
  }
  
  .partner-logo-item img {
    height: 45px;
  }
  
  /* الفوتر */
  .footer {
    padding: 60px 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
  }
  
  .logo-col {
    grid-column: auto;
  }
  
  .footer-col h4::after {
    right: 0;
    left: auto;
  }
}

/* الموبايل الصغير */
@media (max-width: 576px) {
  /* زر الواتساب على الموبايل الصغير */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 15px;
    left: 15px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 2.5rem;
  }
  
  /* الهيدر */
  .header {
    top: 5px;
  }
  
  .header-content {
    padding: 6px 12px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .nav-menu {
    width: 95%;
  }
  
  .nav-menu ul {
    padding: 0 20px;
  }
  
  /* Hero */
  .hero {
    height: 70vh;
    min-height: 450px;
  }
  
  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-subtext {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
  
  .primary-btn i {
    margin-left: 8px;
  }
  
  /* الخطط */
  .plan-item {
    padding: 25px 18px;
  }
  
  .item-icon {
    width: 65px;
    height: 65px;
    font-size: 2rem;
  }
  
  .item-header {
    font-size: 1.25rem;
  }
  
  .item-desc {
    font-size: 0.98rem;
  }
  
  /* TikTok */
  .tiktok-section {
    padding: 60px 0;
  }
  
  .tiktok-video-card {
    min-width: 250px;
    max-width: 250px;
    margin: 0 10px;
    height: 380px;
  }
  
  .tiktok-info {
    padding: 20px;
  }
  
  .watch-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  /* التقييمات */
  .reviews-section {
    padding: 60px 0;
  }
  
  .review-card {
    min-width: 95%;
    padding: 20px;
  }
  
  .reviewer-avatar img {
    width: 60px;
    height: 60px;
  }
  
  .reviewer-name {
    font-size: 1.05rem;
  }
  
  .review-comment {
    font-size: 0.98rem;
  }
  
  /* المكتب */
  .map-container {
    height: 350px;
  }
  
  .office-details-card {
    height: auto;
    min-height: 350px;
  }
  
  .office-photo {
    height: 180px;
  }
  
  .contact-info {
    padding: 25px 18px 30px;
  }
  
  .contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
  }
  
  .info-item {
    gap: 12px;
    padding: 8px;
  }
  
  .info-item i {
    font-size: 1.1rem;
  }
  
  .info-item a,
  .info-item p {
    font-size: 0.95rem;
  }
  
  /* الشركاء */
  .partners-section {
    padding: 60px 0;
  }
  
  .partner-logo-item {
    min-width: 120px;
    margin: 0 20px;
  }
  
  .partner-logo-item img {
    height: 40px;
  }
  
  /* الفوتر */
  .footer {
    padding: 50px 0 0;
  }
  
  .footer-grid {
    padding-bottom: 30px;
  }
  
  .footer-logo img {
    height: 38px;
  }
  
  .footer-col h4 {
    font-size: 1.1rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
  }
}

/* الموبايل الصغير جداً */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .tiktok-video-card {
    min-width: 230px;
    max-width: 230px;
    height: 360px;
  }
  
  .review-card {
    padding: 18px;
  }
}

/* ================ تحسينات الأداء ================ */

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* تحسين الطباعة */
@media print {
  .header,
  .menu-toggle,
  .footer,
  .btn {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
  }
  
  .hero-video-container,
  .hero-overlay {
    display: none !important;
  }
}