*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; color: #333; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== HEADER ===== */
.header { background: transparent; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.header-scrolled { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 60px; max-width: 1440px; margin: 0 auto; }
.logo img { height: 50px; border-radius: 12px; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #222e60; border-radius: 8px; transition: 0.25s; }
.nav > li > a:hover { background: #f0f4ff; }
.nav .lang-btn { background: rgba(255,255,255,0.12); color: #fff !important; padding: 8px 16px; border-radius: 25px; font-size: 13px; border: 1px solid rgba(255,255,255,0.2); }
.nav .lang-btn:hover { background: rgba(255,255,255,0.2); }
.header-scrolled .nav .lang-btn { background: rgba(34,46,96,0.08); color: #222e60 !important; border-color: rgba(34,46,96,0.15); }
.header-scrolled .nav .lang-btn:hover { background: rgba(34,46,96,0.14); }
.nav .login-btn { border: 2px solid #fff; color: #fff; padding: 8px 16px; border-radius: 25px; font-size: 13px; }
.nav .login-btn:hover { background: #fff; color: #0f1b3d; }
.header-scrolled .nav .login-btn { border-color: #222e60; color: #222e60; }
.header-scrolled .nav .login-btn:hover { background: #222e60; color: #fff; }
.submenu { position: absolute; top: 100%; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.12); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 100; padding: 8px; }
.nav > li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 16px; font-size: 13px; font-weight: 500; color: #444; border-radius: 8px; transition: 0.2s; }
.submenu a:hover { background: #f0f4ff; color: #222e60; }
.submenu .submenu { right: 100%; top: 0; }
.hamburger { display: none; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; }
.header-scrolled .hamburger { color: #222e60; }

/* ===== HERO SLIDER ===== */
.hero { position: relative; min-height: 72vh; padding-top: 80px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.active {
  opacity: 1; visibility: visible;
  animation: fadeIn 1s ease;
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,27,61,0.85) 0%, rgba(34,46,96,0.7) 100%); z-index: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide h1, .hero-slide p { position: relative; z-index: 1; }
.hero-slide h1 { font-size: 52px; font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.3; }
.hero-slide p { font-size: 20px; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 700px; margin: 0 auto 30px; }
.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; pointer-events: auto; }
.hero-dots span.active { background: #ffba21; width: 30px; border-radius: 6px; }

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 800; color: #222e60; margin-bottom: 10px; }
.section-title p { font-size: 16px; color: #666; max-width: 600px; margin: 0 auto; }

/* ===== DIGITAL SERVICES (Flip Cards) ===== */
.digital-services { background: #cbd4eb; position: relative; }
.digital-services::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #222e60, #3a86ff, #222e60); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.flip-card { perspective: 1000px; height: 300px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.flip-card-front { background: #fff; border: 1px solid #eef2f7; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.flip-card-front .icon { width: 70px; height: 70px; margin-bottom: 20px; background: #f0f7ff; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #222e60; }
.flip-card-front h3 { font-size: 20px; font-weight: 700; color: #222e60; margin-bottom: 10px; }
.flip-card-front p { font-size: 14px; color: #666; line-height: 1.7; }
.flip-card-back { background: linear-gradient(135deg, #222e60, #1a3a6b); color: #fff; transform: rotateY(180deg); }
.flip-card-back h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.flip-card-back p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.flip-card-back .btn { display: inline-block; padding: 10px 25px; border: 2px solid #fff; border-radius: 25px; color: #fff; font-weight: 600; font-size: 14px; transition: 0.3s; }
.flip-card-back .btn:hover { background: #fff; color: #222e60; }

/* ===== CONSULTING SERVICES ===== */
.consulting-services { background: linear-gradient(135deg, #222e60, #1a3a6b); padding: 80px 0; }
.consulting-services .section-title h2 { color: #fff; }
.consulting-services .section-title p { color: rgba(255,255,255,0.7); }
.consulting-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.consult-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border-radius: 20px; padding: 35px 30px; text-align: center; color: #fff; transition: 0.4s; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; min-height: 320px; }
.consult-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-8px); }
.consult-card .icon { width: 65px; height: 65px; margin: 0 auto 18px; background: rgba(255,255,255,0.12); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.consult-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.consult-card p { font-size: 14px; line-height: 1.7; opacity: 0.85; margin-bottom: 18px; flex: 1; }
.consult-card .btn { display: inline-block; padding: 10px 24px; border: 2px solid rgba(255,255,255,0.5); border-radius: 25px; color: #fff; font-size: 13px; font-weight: 600; transition: 0.3s; }
.consult-card .btn:hover { background: #fff; color: #222e60; border-color: #fff; }

/* ===== PRICING ===== */
.pricing { background: #cbd4eb; position: relative; padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.pricing-card { background: #fff; border-radius: 24px; padding: 30px 38px; text-align: center; transition: 0.35s; position: relative; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(34,46,96,0.06); border: 1px solid rgba(34,46,96,0.06); }
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(34,46,96,0.12); }
.pricing-card.pricing-featured { border: 2px solid #222e60; box-shadow: 0 8px 30px rgba(34,46,96,0.15); }
.pricing-ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #ffba21; color: #222e60; font-size: 11px; font-weight: 800; padding: 4px 22px; border-radius: 20px; z-index: 2; white-space: nowrap; box-shadow: 0 3px 12px rgba(255,186,33,0.3); }
.pricing-icon { font-size: 30px; margin-bottom: 8px; color: #222e60; }
.pricing-card h3 { font-size: 20px; font-weight: 800; color: #222e60; margin-bottom: 6px; }
.pricing-sub { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 14px; flex: 1; }
.pricing-amount { font-size: 28px; font-weight: 800; color: #222e60; padding: 12px 0; margin-bottom: 14px; border-top: 2px solid #eef2f7; border-bottom: 2px solid #eef2f7; }
.pricing-card.pricing-featured .pricing-amount { color: #222e60; }
.pricing-features { text-align: right; margin-bottom: 16px; }
.pricing-features li { padding: 5px 0; font-size: 13px; display: flex; align-items: center; gap: 8px; color: #444; }
.pricing-features li i { font-size: 15px; color: #3a86ff; width: 20px; text-align: center; }
.pricing-card .btn { display: block; padding: 12px; border-radius: 14px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; background: #eef2ff; color: #222e60; }
.pricing-card .btn:hover { background: #222e60; color: #fff; transform: scale(1.02); }
.pricing-card.pricing-featured .btn { background: #222e60; color: #fff; }
.pricing-card.pricing-featured .btn:hover { background: #3a86ff; }

/* ===== PARTNERS ===== */
.partners { background: #dce2f0; padding: 30px 0; overflow: hidden; }
.partners-slider { position: relative; width: 100%; }
.partners-track { display: flex; gap: 60px; animation: scroll 30s linear infinite; width: max-content; align-items: center; }
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partners-track img { height: 55px; width: auto; filter: grayscale(100%); opacity: 0.4; transition: all 0.4s ease; object-fit: contain; }
.partners-track img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.1); }


/* ===== FOOTER ===== */
.footer { background: #0f1b3d; color: rgba(255,255,255,0.8); position: relative; }
.footer-inner { padding: 80px 0 30px; display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; }
.footer-inner p { font-size: 14px; line-height: 1.8; }
.footer-inner h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.footer-inner ul li { margin-bottom: 10px; }
.footer-inner ul li a { font-size: 14px; transition: 0.2s; }
.footer-inner ul li a:hover { color: #ffba21; padding-right: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 15px; }
.footer-contact li i { color: #ffba21; margin-top: 4px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; }
.social-links a:hover { background: #ffba21; color: #0f1b3d; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 14px; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float { position: fixed; bottom: 25px; left: 25px; z-index: 999; }
.wa-float a { width: 58px; height: 58px; background: linear-gradient(135deg,#25d366,#128c7e); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: 0.3s; position: relative; }
.wa-float a:hover { transform: scale(1.08); }
.wa-badge { position: absolute; top: -4px; right: -4px; background: red; color: #fff; font-size: 11px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,0,0,0.7); } 70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255,0,0,0); } 100% { transform: scale(1); } }
.wa-tooltip { position: absolute; left: 68px; top: 50%; transform: translateY(-50%); background: #fff; color: #333; padding: 8px 14px; border-radius: 10px; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,0.2); display: none; font-family: 'Cairo',sans-serif; }
.wa-tooltip::after { content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); border: 6px solid; border-color: transparent #fff transparent transparent; }


/* ===== LANG SWITCHER (Header) ===== */
.lang-switcher-wrap { position: relative; }
.lang-dropdown { position: absolute; top: 100%; left: 0; background: #fff; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.12); min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 100; padding: 6px; }
.lang-switcher-wrap:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: block; padding: 10px 16px; font-size: 13px; font-weight: 600; color: #444; border-radius: 8px; transition: 0.2s; text-align: center; }
.lang-dropdown a:hover { background: #f0f4ff; color: #222e60; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .consulting-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1.5fr; gap: 30px; }
  .header-inner { padding: 12px 30px; }
}
@media (max-width: 992px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #1a2a5e; padding: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); border-radius: 0 0 16px 16px; }
  .nav.open { display: flex; }
  .nav > li > a { color: #fff; }
  .nav > li > a:hover { background: rgba(255,255,255,0.1); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 10px; display: none; background: transparent; }
  .nav > li:hover > .submenu { display: block; }
  .submenu a { color: #ccc; }
  .submenu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .submenu .submenu { right: auto; }
  .hamburger { display: block; }
  .header-inner { padding: 12px 20px; }
  .hero-slide h1 { font-size: 32px; }
  .hero-slide p { font-size: 16px; }
  .hero { min-height: 60vh; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 25px 20px; }
  .lang-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 10px; display: none; background: transparent; }
  .lang-dropdown a { color: #ccc; }
  .lang-dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .lang-switcher-wrap:hover .lang-dropdown { display: block; }
  .lang-switcher-wrap:hover .lang-btn { background: rgba(255,255,255,0.2); }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 35px; }
  .section-title h2 { font-size: 30px; }
  .flip-card { height: 260px; }
  .consult-card { min-height: 280px; padding: 25px 20px; }
  .wa-float { bottom: 15px; left: 15px; }
  .wa-float a { width: 48px; height: 48px; font-size: 22px; }
  .wa-tooltip { left: 56px; font-size: 12px; padding: 6px 12px; }
  .logo img { height: 40px; }
}
@media (max-width: 768px) {
  .hero-slide h1 { font-size: 28px; }
  .hero-slide p { font-size: 15px; max-width: 100%; }
  .hero { min-height: 50vh; padding-top: 70px; }
  .hero-dots { bottom: 20px; }
  .hero-dots span { width: 10px; height: 10px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .flip-card { height: 240px; }
  .flip-card-front, .flip-card-back { padding: 20px; }
  .flip-card-front .icon { width: 55px; height: 55px; font-size: 24px; margin-bottom: 14px; }
  .flip-card-front h3, .flip-card-back h3 { font-size: 16px; }
  .flip-card-front p, .flip-card-back p { font-size: 13px; }
  .consulting-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .consult-card { min-height: 250px; padding: 20px 15px; }
  .consult-card h3 { font-size: 16px; }
  .consult-card p { font-size: 13px; }
  .consult-card .icon { width: 55px; height: 55px; font-size: 22px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .pricing-card { padding: 20px; }
  .pricing-amount { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-inner > div:first-child > div { justify-content: center; }
  .social-links { justify-content: center; }
  .footer-contact li { justify-content: center; }
  .partners-track { gap: 40px; }
  .partners-track img { height: 40px; }
  .container { padding: 0 12px; }
  .section-title p { font-size: 14px; }
}
@media (max-width: 576px) {
  .hero-slide h1 { font-size: 22px; }
  .hero-slide p { font-size: 14px; }
  .hero { min-height: 40vh; padding-top: 60px; }
  .hero-dots span { width: 8px; height: 8px; }
  .hero-dots span.active { width: 20px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .section-title p { font-size: 13px; }
  .section-title { margin-bottom: 25px; }
  .services-grid { grid-template-columns: 1fr; }
  .flip-card { height: 220px; }
  .flip-card-front .icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 10px; }
  .flip-card-front h3, .flip-card-back h3 { font-size: 15px; }
  .consulting-grid { grid-template-columns: 1fr; }
  .consult-card { min-height: auto; padding: 18px 15px; }
  .consult-card .icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 12px; }
  .consult-card h3 { font-size: 15px; }
  .pricing-card { padding: 18px 15px; }
  .pricing-amount { font-size: 22px; padding: 10px 0; }
  .pricing-features li { font-size: 12px; }
  .footer-inner { padding: 50px 15px 20px; }
  .footer-inner h4 { font-size: 16px; margin-bottom: 14px; }
  .footer-inner p, .footer-inner ul li a, .footer-contact li { font-size: 13px; }
  .footer-bottom { font-size: 12px; padding: 15px 0; }
  .logo img { height: 36px; }
  .header-inner { padding: 10px 15px; }
  .wa-float { bottom: 12px; left: 12px; }
  .wa-float a { width: 42px; height: 42px; font-size: 18px; }
  .wa-tooltip { display: none !important; }
  .wa-badge { width: 16px; height: 16px; font-size: 9px; top: -3px; right: -3px; }
  .partners-track { gap: 30px; }
  .partners-track img { height: 32px; }
}
