 /* حل خاص لأجهزة iOS */
      @supports (-webkit-appearance: none) {
        .background-water {
          display: none !important;
        }
        body {
          background: linear-gradient(
            135deg,
            #00195e 0%,
            #004cb7 50%,
            #31abfd 100%
          ) !important;
          background-attachment: scroll !important;
        }
      }

      /* حل نهائي قوي لمشكلة الآيفون */
      @supports (-webkit-touch-callout: none) {
        .background-water {
          display: none !important;
          opacity: 0 !important;
          visibility: hidden !important;
          pointer-events: none !important;
        }
      }

      /* حل إضافي لأجهزة iOS تحديداً */
      @media screen and (-webkit-min-device-pixel-ratio: 1) {
        body {
          background: linear-gradient(
            135deg,
            #00195e 0%,
            #004cb7 50%,
            #31abfd 100%
          ) !important;
          background-size: cover !important;
          background-repeat: no-repeat !important;
          background-attachment: scroll !important;
        }
        .background-water {
          display: none !important;
        }
      }

      /* حل لـ Safari على iPhone */
      @media screen and (-webkit-min-device-pixel-ratio: 2) {
        body {
          -webkit-background-size: cover !important;
          background-size: cover !important;
        }
      }

      /* حل شامل لجميع الأجهزة المحمولة */
      @media (hover: none) and (pointer: coarse) {
        .background-water {
          display: none !important;
          opacity: 0 !important;
          visibility: hidden !important;
        }
      }

      /* حل مخصص للآيفون باستخدام user agent */
      @media only screen and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3) {
        .background-water {
          display: none !important;
          opacity: 0 !important;
          visibility: hidden !important;
        }
      }


/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  /* Colors */
  --primary-dark: #00195e;
  --primary-medium: #004cb7;
  --primary-light: #31abfd;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #ff4757;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;

  /* Fonts - Unified IBM Plex Sans Arabic for both languages */
  --font-primary: "IBM Plex Sans Arabic", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", sans-serif;
  --font-english: "IBM Plex Sans Arabic", sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* ===== FONT OPTIMIZATION - UNIFIED IBM PLEX SANS ARABIC ===== */
/* Force IBM Plex Sans Arabic everywhere EXCEPT icons */

/* Apply to all elements except Font Awesome */
*:not([class*="fa-"]):not(i):not(.fab):not(.fas):not(.far):not(.fal):not(.fad) {
  font-family: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Specific elements that need the font */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
input,
button:not([class*="fa"]),
select,
textarea,
.nav-item,
.header-cta,
.cart-btn,
.lang-toggle,
.mobile-nav-item,
.team-card,
.team-name,
.team-role,
.achievements-list,
.skills-list,
.superpowers-list,
.team-hire-btn,
.modal-content,
.form-input,
.btn-submit,
.footer-section {
  font-family: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
}

/* Better font rendering */
html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* PROTECT Font Awesome icons - CRITICAL */
i,
.fa,
.fas,
.far,
.fal,
.fab,
.fad,
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}

/* Body Base Styles */
body {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--primary-light) 100%
  ) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-medium);
}

/* Body Base Styles */
body {
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--primary-light) 100%
  ) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-medium);
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 25, 94, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--primary-medium),
    var(--primary-dark)
  );
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--primary-dark),
    var(--primary-medium)
  );
  box-shadow: 0 0 10px rgba(49, 171, 253, 0.5);
}

/* ===== BACKGROUND & DECORATIVE ELEMENTS ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(49, 171, 253, 0.15),
    rgba(0, 25, 94, 0.15)
  );
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(0, 76, 183, 0.15),
    rgba(49, 171, 253, 0.15)
  );
  border-radius: 20px;
  animation-delay: 2s;
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 120px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(0, 25, 94, 0.15),
    rgba(0, 76, 183, 0.15)
  );
  border-radius: 30px;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Side Strips */
.side-strip {
  position: fixed;
  top: 0;
  width: 12px;
  height: 100vh;
  z-index: 999;
  background: linear-gradient(
    180deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--primary-light) 100%
  );
  animation: stripPulse 3s ease-in-out infinite alternate;
}

.side-strip.left {
  left: 0;
  border-radius: 0 20px 20px 0;
}

.side-strip.right {
  right: 0;
  border-radius: 20px 0 0 20px;
}

@keyframes stripPulse {
  0% {
    box-shadow: inset 0 0 20px rgba(49, 171, 253, 0.3),
      0 0 15px rgba(0, 25, 94, 0.5);
  }
  100% {
    box-shadow: inset 0 0 30px rgba(49, 171, 253, 0.6),
      0 0 25px rgba(0, 76, 183, 0.7);
  }
}

.bottom-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 25%,
    var(--primary-light) 50%,
    var(--primary-medium) 75%,
    var(--primary-dark) 100%
  );
  z-index: 999;
  box-shadow: 0 -2px 20px rgba(49, 171, 253, 0.4),
    0 -4px 10px rgba(0, 76, 183, 0.3);
}

/* ===== HEADER STYLES ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 25, 94, 0.1);
  transition: all var(--transition-medium);
  border-bottom: 4px solid transparent;
  background-clip: padding-box;
}

header::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 25%,
    var(--primary-light) 50%,
    var(--primary-medium) 75%,
    var(--primary-dark) 100%
  );
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-medium);
}

.logo img {
  height: 150px;
  width: auto;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-direction: row;
}

/* RTL Navigation */
html[dir="rtl"] .nav-menu {
  direction: rtl;
}

.nav-item {
  text-decoration: none;
  color: var(--text-medium);
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all var(--transition-medium);
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-dark);
  background: rgba(0, 25, 94, 0.1);
  transform: translateY(-2px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(0, 25, 94, 0.3);
  order: 1;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 25, 94, 0.4);
}

.cart-btn {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-medium)
  );
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(49, 171, 253, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(49, 171, 253, 0.4);
}

.cart-icon {
  font-size: 18px;
  color: white;
}

.cart-count {
  background: white;
  color: var(--primary-medium);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  min-width: 24px;
}

.lang-toggle {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-medium)
  );
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(49, 171, 253, 0.3);
  min-width: 65px;
  justify-content: center;
  order: 3;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(49, 171, 253, 0.4);
}

.lang-toggle i {
  font-size: 12px;
}

#currentLang {
  font-weight: 700;
  font-size: 12px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 25, 94, 0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 15px 20px;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 25, 94, 0.1);
  transition: all var(--transition-medium);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

html[dir="rtl"] .mobile-nav-item {
  text-align: right;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-dark);
  background: rgba(0, 25, 94, 0.05);
}

.mobile-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  ) !important;
  color: white !important;
  border-radius: 10px !important;
  margin-top: 10px !important;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: 100px;
  padding: 40px 20px 20px;
  min-height: calc(100vh - 100px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px 20px 40px;
}

.hero-content {
  max-width: 1000px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: slideInUp 1s ease-out 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(20px);
  margin: 40px 20px;
  border-radius: 30px;
  padding: 60px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 1s ease-out 0.6s both;
}

.team-title {
  text-align: center;
  color: white;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.team-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 50px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 40px;
}

/* Team Card */
.team-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 25, 94, 0.12);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(49, 171, 253, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.team-card:hover::before {
  left: 100%;
}

.team-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 25, 94, 0.2);
}

.team-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
}

.avatar-bg {
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

/* Price Badge */
.price-badge {
  position: absolute;
  top: -10px;
  right: -20px;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 25, 94, 0.3);
  z-index: 10;
  border: 3px solid white;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.team-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.team-role {
  color: var(--text-medium);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Achievements Section */
.achievements-section {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #e0e0e0;
}

.achievements-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.achievements-list {
  list-style: none;
}

.achievements-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(140, 140, 140, 0.1);
  font-size: 0.9rem;
  color: var(--text-medium);
  position: relative;
  padding-right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievements-list li:before {
  content: "🏆";
  font-size: 1.2rem;
}

.achievements-list li:last-child {
  border-bottom: none;
}

.achievement-metric {
  background: linear-gradient(135deg, var(--success-color), #8bc34a);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 10px;
}

/* Chart Container */
.chart-container {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 10px;
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 2s ease-in-out;
}

.progress-fill.success {
  background: linear-gradient(90deg, var(--success-color), #8bc34a);
}

.progress-fill.warning {
  background: linear-gradient(90deg, var(--warning-color), #ffc107);
}

.progress-fill.info {
  background: linear-gradient(90deg, var(--primary-light), #2196f3);
}

/* Skills and Powers */
.card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.skills-section,
.superpowers-section {
  background: var(--bg-light);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-list,
.superpowers-list {
  list-style: none;
}

.skills-list li,
.superpowers-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(140, 140, 140, 0.1);
  font-size: 0.85rem;
  color: var(--text-medium);
  position: relative;
  padding-right: 20px;
}

.skills-list li:before,
.superpowers-list li:before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.superpowers-list li:before {
  content: "⚡";
  color: var(--primary-light);
}

.skills-list li:last-child,
.superpowers-list li:last-child {
  border-bottom: none;
}

/* Team Hire Button */
.team-hire-btn {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: white;
  padding: 18px 36px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(49, 171, 253, 0.3);
  margin-top: 20px;
  width: 100%;
}

.team-hire-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.team-hire-btn:hover::before {
  left: 100%;
}

.team-hire-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(49, 171, 253, 0.5);
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  opacity: 0;
  transition: all var(--transition-medium);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

html[dir="rtl"] .modal-close {
  left: auto;
  right: 15px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-title {
  font-size: clamp(1.5rem, 3vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: clamp(0.9rem, 2vw, 16px);
  opacity: 0.9;
}

.modal-body {
  padding: 30px 20px;
}

/* Service Info */
.service-info {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.service-info h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

html[dir="rtl"] .form-label {
  text-align: right;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 25, 94, 0.3);
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success Message */
.success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  z-index: 3000;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 25, 94, 0.3);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: linear-gradient(
    135deg,
    rgba(0, 25, 94, 0.98) 0%,
    rgba(0, 76, 183, 0.95) 50%,
    rgba(49, 171, 253, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  color: white;
  padding: 80px 20px 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid rgba(255, 255, 255, 0.2);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(49, 171, 253, 0.9) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(49, 171, 253, 0.9) 75%,
    rgba(255, 255, 255, 0.8) 100%
  );
  background-size: 200% 100%;
  animation: footerGradientFlow 4s linear infinite;
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
}

@keyframes footerGradientFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="10" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="90" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-section {
  transition: transform var(--transition-medium);
}

.footer-section:hover {
  transform: translateY(-5px);
}

.footer-logo {
  text-align: left;
  margin-bottom: 30px;
}

html[dir="rtl"] .footer-logo {
  text-align: right;
}

.footer-logo img {
  height: 140px;
  width: auto;
  filter: brightness(1.3) contrast(1.1);
  transition: transform var(--transition-medium);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.5));
  border-radius: 2px;
}

html[dir="rtl"] .footer-section h3::after {
  right: 0;
  left: auto;
}

.footer-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  text-align: justify;
  font-size: 16px;
  font-weight: 400;
}

.footer-section p strong {
  color: white;
  font-weight: 700;
  display: block;
  margin-top: 20px;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-services {
  list-style: none;
  padding: 0;
}

.footer-services li {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  transition: all var(--transition-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-services li:last-child {
  border-bottom: none;
}

html[dir="rtl"] .footer-services li {
  padding-left: 0;
  padding-right: 30px;
  text-align: right;
}

.footer-services li::before {
  content: "→";
  color: white;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 18px;
  transition: transform var(--transition-medium);
}

html[dir="rtl"] .footer-services li::before {
  content: "←";
  left: auto;
  right: 0;
}

.footer-services li:hover {
  color: white;
  padding-left: 35px;
}

html[dir="rtl"] .footer-services li:hover {
  padding-left: 0;
  padding-right: 35px;
}

.footer-services li:hover::before {
  transform: translateX(5px);
}

html[dir="rtl"] .footer-services li:hover::before {
  transform: translateX(-5px);
}

.footer-services li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-medium);
  font-weight: 500;
}

.footer-services li a:hover {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section p i {
  color: white;
  margin-right: 12px;
  width: 25px;
  text-align: center;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .footer-section p i {
  margin-right: 0;
  margin-left: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin-bottom: 10px;
  font-weight: 500;
}

.novay-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all var(--transition-medium);
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.novay-link:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.novay-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.novay-link:hover::after {
  width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
  .footer-content {
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 80px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }

  .header-content {
    padding: 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    height: 70px;
    padding: 0 15px;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-toggle {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 55px;
  }

  .lang-toggle i {
    font-size: 10px;
  }

  #currentLang {
    font-size: 11px;
  }

  .cart-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .cart-count {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  /* Hero */
  .hero {
    padding: 80px 15px 30px;
    min-height: 70vh;
  }

  /* Sections */
  .team-section {
    margin: 20px 10px;
    padding: 40px 20px;
    border-radius: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Decorative Elements */
  .side-strip {
    width: 8px;
  }

  .bottom-strip {
    height: 8px;
  }

  /* Modals */
  .modal-overlay {
    padding: 10px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-section:first-child {
    grid-column: auto;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  html[dir="rtl"] .footer-section h3::after {
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-services li {
    text-align: center;
    padding-left: 0;
  }

  html[dir="rtl"] .footer-services li {
    padding-right: 0;
    text-align: center;
  }

  .footer-services li::before {
    display: none;
  }

  .footer-services li:hover {
    padding-left: 0;
  }

  html[dir="rtl"] .footer-services li:hover {
    padding-right: 0;
  }

  .footer-section p {
    text-align: center;
  }

  .footer-section p i {
    margin-right: 8px;
    float: none;
  }

  html[dir="rtl"] .footer-section p i {
    margin-left: 8px;
    margin-right: 0;
    float: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo img {
    height: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .team-card {
    padding: 25px 20px;
    min-height: 550px;
  }

  .team-avatar {
    width: 120px;
    height: 120px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .price-badge {
    right: -10px;
    font-size: 11px;
    padding: 5px 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 50px;
  }

  .cart-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  footer {
    padding: 60px 20px 30px;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .footer-section p {
    font-size: 14px;
  }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .form-input {
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .footer-section {
  text-align: right;
}

@media (max-width: 768px) {
  html[dir="rtl"] .footer-section {
    text-align: center;
  }

  html[dir="rtl"] .footer-logo {
    text-align: center;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img,
  .footer-logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shape {
    animation: none;
  }

  .side-strip {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .side-strip,
  .bottom-strip,
  .bg-animation,
  header,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .team-section {
    background: white !important;
    border: 1px solid #ccc !important;
  }
}

/* ===== COMPATIBILITY & BROWSER SUPPORT ===== */

/* Safari iOS Background Fix */
@supports (-webkit-appearance: none) {
  .background-water {
    display: none !important;
  }
  body {
    background: linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary-medium) 50%,
      var(--primary-light) 100%
    ) !important;
    background-attachment: scroll !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .background-water {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* iOS Device Specific */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
  body {
    background: linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary-medium) 50%,
      var(--primary-light) 100%
    ) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
  .background-water {
    display: none !important;
  }
}

/* Mobile & Tablet Background Fix */
@media (max-width: 1024px) {
  .background-water {
    display: none !important;
  }
  body {
    background: linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary-medium) 50%,
      var(--primary-light) 100%
    ) !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }
}

/* Water Background Removal - Global */
.background-water {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration for Animations */
.team-card,
.btn-submit,
.header-cta,
.cart-btn,
.lang-toggle {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus Indicators */
*:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

button:focus,
.team-hire-btn:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-dark: #000;
    --primary-medium: #333;
    --primary-light: #666;
    --text-dark: #000;
    --text-medium: #333;
    --text-light: #666;
  }

  .team-card,
  .modal-content {
    border: 2px solid #000;
  }
}

/* Reduced Transparency for Accessibility */
@media (prefers-reduced-transparency: reduce) {
  header,
  .team-section,
  footer {
    backdrop-filter: none;
  }

  header {
    background: rgb(255, 255, 255);
  }

  footer {
    background: rgb(0, 25, 94);
  }
}

/* ===== UTILITY CLASSES ===== */

/* Text Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Margin Utilities */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* Display Utilities */
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}

/* Responsive Display Utilities */
@media (max-width: 768px) {
  .d-md-none {
    display: none;
  }
  .d-md-block {
    display: block;
  }
}

@media (min-width: 769px) {
  .d-md-up-none {
    display: none;
  }
  .d-md-up-block {
    display: block;
  }
}

/* ===== ANIMATION PERFORMANCE ===== */

/* Optimize animations for 60fps */
@keyframes optimizedFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -20px, 0) rotate(10deg);
  }
}

.floating-shape {
  animation: optimizedFloat 6s ease-in-out infinite;
}

/* ===== FINAL OVERRIDES ===== */

/* Ensure consistency across all browsers */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove any lingering water background elements */
body::before,
body::after,
html::before,
html::after {
  content: none !important;
}

/* Ensure proper stacking context */
.bg-animation {
  isolation: isolate;
}

/* Force hardware acceleration on mobile */
@media (max-width: 768px) {
  .team-card,
  .modal-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

/* End of CSS File */

