:root {
  --primary-dark: #0B3C5D;
  --primary: #1D6FA5;
  --primary-light: #3498DB;
  --primary-soft: #E8F4FF;
  --accent: #D4AF37;
  --accent-light: #F2D16B;
  --accent-soft: #FFF9E6;
  
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F8F9FA;
  --medium-gray: #E9ECEF;
  --dark-gray: #6C757D;
  --text-dark: #212529;
  --text-light: #495057;
  
  --shadow-xs: 0 1px 3px rgba(11, 60, 93, 0.05);
  --shadow-sm: 0 2px 8px rgba(11, 60, 93, 0.07);
  --shadow-md: 0 4px 16px rgba(11, 60, 93, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 60, 93, 0.1);
  --shadow-xl: 0 16px 48px rgba(11, 60, 93, 0.12);
  
  --border-light: 1px solid rgba(11, 60, 93, 0.08);
  --border-medium: 1px solid rgba(11, 60, 93, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 90px;
  --header-height-scrolled: 70px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
    font-weight: 800; /* الوزن الثقيل جداً */

}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(29, 111, 165, 0.2);
  color: var(--primary-dark);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--white);
  border-bottom: var(--border-light);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

/* ===== NAVBAR LAYOUT ===== */
.navbar {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  position: relative;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.logo-container:hover .logo img {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-links a {
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding: 12px 0;
  transition: color var(--transition-normal);
  white-space: nowrap;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-links a.active::before {
  width: 100%;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-width: 80px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.lang-switcher button:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lang-switcher button:active {
  transform: translateY(0);
}

/* Consultation Button */
.btn-outline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent);
  background-color: transparent;
  color: var(--accent);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger:hover span {
  background-color: var(--primary-light);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== زر اللغة للجوال ===== */
.mobile-lang-item {
  display: none;
  width: 100%;
  padding: 20px;
  margin-top: 20px;
  border-top: var(--border-medium);
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.mobile-lang-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

.back-to-top:active {
  transform: translateY(0);
}

.scroll-progress {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, transparent 0%);
  z-index: -1;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, transparent 0%);
  transition: background 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .navbar {
    gap: 30px;
    padding: 0 30px;
  }
  
  .nav-links {
    gap: 30px;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .navbar {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .nav-actions {
    display: none;
  }
  
  .mobile-lang-item {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 30px 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 18px;
    font-size: 1.1rem;
    border-bottom: var(--border-light);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }
  
  header.scrolled .nav-links {
    top: var(--header-height-scrolled);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 15px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  header.scrolled .logo-text {
    font-size: 1.1rem;
  }
  
  header.scrolled .logo {
    width: 40px;
    height: 40px;
  }
  
  .nav-links {
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  .logo-text {
    display: none;
  }
  
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
  
  .mobile-lang-btn {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.lang-switcher button:focus-visible,
.mobile-lang-btn:focus-visible,
.btn-outline:focus-visible,
.hamburger:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* ===== LTR SUPPORT ===== */
[dir="ltr"] .navbar {
  direction: ltr;
}

[dir="ltr"] .nav-links {
  direction: ltr;
}

[dir="ltr"] .nav-actions {
  direction: ltr;
}

[dir="ltr"] .nav-links a::before {
  left: 0;
  right: auto;
}

[dir="ltr"] .back-to-top {
  left: auto;
  right: 30px;
}

















/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-height) + 40px) 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--white) 0%,
    var(--light-gray) 30%,
    var(--primary-soft) 70%,
    var(--white) 100%);
}

/* Geometric Pattern Background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(29, 111, 165, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 20%);
  background-size: 400px 400px, 300px 300px;
  z-index: 0;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height) - 40px);
}

/* Hero Text */
.hero-text {
  position: relative;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.hero-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-text .highlight {
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-text .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(29, 111, 165, 0.1);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-12deg);
}

.hero-text p {
  font-family: 'Cairo', sans-serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.7s forwards;
  opacity: 0;
}

.hero-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero Image */
.hero-image {
  position: relative;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
  opacity: 0;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

.image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  padding: 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-light);
}

.main-visual {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.visual-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(29, 111, 165, 0.1);
}

.visual-icon i {
  font-size: 3rem;
  color: var(--primary);
}

.main-visual h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.main-visual p {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

/* Decorative Elements */
.decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(29, 111, 165, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  bottom: 20%;
  right: 8%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  animation: float 10s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  animation: fadeIn 1s ease 1.5s forwards;
  opacity: 0;
  z-index: 2;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(29, 111, 165, 0.3);
  border-radius: 15px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 60px;
  }
  
  .hero-text h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 1014px) {
  .navbar {
    padding: 0 30px;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding: 0 30px;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 1015px) {
  .navbar {
    padding: 0 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 120px 30px 60px;
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: var(--border-light);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  
  .nav-links a {
    display: flex;
    padding: 18px 0;
    border-bottom: var(--border-light);
    font-size: 1.1rem;
    text-align: right;
  }
  
  .nav-actions {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-inner {
    padding: 0 20px;
    gap: 50px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    font-size: 1.15rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
  
  .image-container {
    min-height: 350px;
    padding: 30px;
  }
  
  .visual-icon {
    width: 80px;
    height: 80px;
  }
  
  .visual-icon i {
    font-size: 2.5rem;
  }
  
  .main-visual h3 {
    font-size: 1.6rem;
  }
  
  .main-visual p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }
  
  .hero-text p {
    font-size: 1.05rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .image-container {
    padding: 20px;
    min-height: 300px;
  }
  
  .visual-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .visual-icon i {
    font-size: 2rem;
  }
  
  .main-visual h3 {
    font-size: 1.4rem;
  }
  
  .main-visual p {
    font-size: 0.95rem;
  }
}




/* ===== AUTO RTL/LTR SUPPORT ===== */
html[dir="rtl"] .hero-buttons .btn-primary i {
  transform: rotate(180deg);
  margin-right: 10px;
  margin-left: 0;
}

html[dir="ltr"] .hero-buttons .btn-primary i {
  transform: rotate(0deg);
  margin-left: 10px;
  margin-right: 0;
}

/* تأكد من ظهور الأيقونة */
.lang-switcher button i {
  display: inline-block !important;
  margin-left: 5px;
}

html[dir="rtl"] .lang-switcher button i {
  margin-left: 0;
  margin-right: 5px;
}