@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --accent: #38BDF8;
  --dark: #0B1426;
  --dark2: #0F2040;
  --card-bg: rgba(14, 165, 233, 0.05);
  --glass: rgba(14, 165, 233, 0.1);
  --text: #E2F4FD;
  --text-muted: #94C7E0;
  --gold: #F59E0B;
  --gradient: linear-gradient(135deg, #0EA5E9, #0B84C9, #005f99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-size: 3rem; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; margin-top: 20px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: var(--gradient);
  border-radius: 2px;
  animation: load 2s ease forwards;
}
@keyframes load { to { width: 100%; } }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(11,20,38,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(14,165,233,0.15);
  padding: 10px 0;
}
.nav-brand {
  font-size: 1.8rem; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}
.nav-brand span { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.navbar-toggler { border: 1px solid var(--primary); }
.navbar-toggler-icon { filter: invert(1); }
.nav-link {
  color: var(--text) !important;
  font-weight: 600; font-size: 0.95rem;
  padding: 8px 15px !important;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; right: 50%; left: 50%;
  height: 2px; background: var(--primary);
  transition: all 0.3s;
}
.nav-link:hover::after { right: 15px; left: 15px; }
.nav-link:hover { color: var(--primary) !important; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(14,165,233,0.2) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(0,212,255,0.1) 0%, transparent 50%),
              var(--dark);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles span {
  position: absolute; display: block;
  background: var(--primary); border-radius: 50%;
  opacity: 0.3; animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.hero-badge {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 20px; border-radius: 30px;
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 20px;
  animation: fadeDown 0.8s ease forwards;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.2;
  animation: fadeDown 0.8s ease 0.2s both;
}
.hero-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-link.active-nav { color: var(--primary) !important; }
.nav-link.active-nav::after { right: 15px; left: 15px; }
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-muted);
  max-width: 600px; margin: 20px auto;
  animation: fadeDown 0.8s ease 0.4s both;
}
.hero-btns { animation: fadeDown 0.8s ease 0.6s both; }
.btn-primary-custom {
  background: var(--gradient);
  color: #fff; border: none;
  padding: 14px 35px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(14,165,233,0.3);
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(14,165,233,0.5);
  color: #fff;
}
.btn-outline-custom {
  background: transparent;
  color: var(--primary); border: 2px solid var(--primary);
  padding: 12px 35px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-3px);
}
.hero-card {
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  animation: fadeRight 1s ease 0.5s both;
}
.hero-icon-wrap {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(14,165,233,0.3);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-15px);} }
.hero-stats-row { margin-top: 60px; animation: fadeUp 1s ease 0.8s both; }
.hero-stat {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.2);
  transition: transform 0.3s;
}
.hero-stat:hover { transform: translateY(-5px); }
.hero-stat .num { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.hero-stat .lbl { color: var(--text-muted); font-size: 0.9rem; }
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary); font-size: 1.5rem;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-10px);} }

/* ===== SECTIONS COMMON ===== */
section { padding: 90px 0; }
.section-tag {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 5px 18px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 15px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 10px;
}
.section-title .c { color: var(--primary); }
.section-line {
  width: 60px; height: 4px;
  background: var(--gradient);
  border-radius: 2px; margin: 15px auto;
}
.section-sub { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== ABOUT ===== */
#about { background: var(--dark2); }
.about-img-wrap {
  position: relative;
  border-radius: 20px; overflow: hidden;
}
.about-img-main {
  width: 100%; height: 400px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
  box-shadow: 0 20px 60px rgba(14,165,233,0.3);
}
.about-badge {
  position: absolute; bottom: -20px; right: 30px;
  background: var(--gold);
  color: #000; font-weight: 900;
  padding: 15px 25px; border-radius: 15px;
  text-align: center; box-shadow: 0 10px 30px rgba(245,158,11,0.4);
}
.about-badge .num { font-size: 2rem; display: block; }
.about-feature {
  display: flex; align-items: center; gap: 15px;
  padding: 15px; border-radius: 12px;
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.15);
  margin-bottom: 15px;
  transition: all 0.3s;
}
.about-feature:hover { border-color: var(--primary); transform: translateX(-5px); }
.about-feature-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ===== SERVICES ===== */
#services { background: var(--dark); }
.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s;
  height: 100%;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  transform: scaleX(0); transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(14,165,233,0.2);
  background: var(--glass);
}
.service-icon {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px;
  transition: transform 0.4s;
  box-shadow: 0 10px 30px rgba(14,165,233,0.25);
}
.service-card:hover .service-icon { transform: rotate(10deg) scale(1.1); }
.service-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== WORKS ===== */
#works { background: var(--dark2); }
.work-card {
  border-radius: 20px; overflow: hidden;
  position: relative; height: 280px;
  background: var(--card-bg);
  border: 1px solid rgba(14,165,233,0.15);
  cursor: pointer;
  transition: all 0.4s;
}
.work-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(14,165,233,0.25); border-color: var(--primary); }
.work-icon-bg {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 15px;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(2,132,199,0.05));
  transition: all 0.4s;
}
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,20,38,0.95) 0%, rgba(11,20,38,0.4) 50%, transparent 100%);
  opacity: 0; transition: all 0.4s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 25px;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-card:hover .work-icon-bg { transform: scale(1.05); }
.work-overlay h5 { font-weight: 700; margin-bottom: 5px; }
.work-overlay p { color: var(--text-muted); font-size: 0.85rem; }
.work-overlay .badge-work {
  display: inline-block;
  background: var(--primary);
  color: #fff; padding: 3px 12px;
  border-radius: 20px; font-size: 0.75rem;
  margin-bottom: 10px;
}

/* ===== WHY US ===== */
#why { background: var(--dark); }
.why-card {
  padding: 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(14,165,233,0.15);
  transition: all 0.4s;
  height: 100%;
  position: relative; overflow: hidden;
}
.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.2);
}
.why-num {
  font-size: 5rem; font-weight: 900;
  color: rgba(14,165,233,0.08);
  position: absolute; top: -10px; left: 20px;
  line-height: 1;
}
.why-icon { font-size: 2.5rem; margin-bottom: 15px; }
.why-card h4 { font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== STATS ===== */
#stats {
  background: var(--gradient);
  position: relative; overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; padding: 30px; color: #fff; }
.stat-item .counter { font-size: 3.5rem; font-weight: 900; display: block; }
.stat-item .unit { font-size: 1.5rem; }
.stat-item .label { font-size: 1rem; opacity: 0.85; margin-top: 5px; }

/* ===== AREAS ===== */
#areas { background: var(--dark2); }
.area-card {
  padding: 25px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.2);
  text-align: center;
  transition: all 0.4s;
  cursor: default;
}
.area-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(14,165,233,0.2);
  background: rgba(14,165,233,0.12);
}
.area-icon { font-size: 2.5rem; margin-bottom: 12px; }
.area-card h5 { font-weight: 700; margin-bottom: 5px; }
.area-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ===== CONTACT ===== */
#contact { background: var(--dark); }
.contact-info-card {
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
}
.contact-item {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(14,165,233,0.1);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 55px; height: 55px; flex-shrink: 0;
  background: var(--gradient);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(14,165,233,0.3);
}
.contact-item-text .label { color: var(--text-muted); font-size: 0.8rem; }
.contact-item-text .value { font-weight: 700; font-size: 1.05rem; }
.contact-item-text a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.contact-item-text a:hover { color: var(--primary); }
.contact-form-card {
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 20px;
  padding: 35px;
}
.form-control-custom {
  background: rgba(14,165,233,0.05);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.3s;
  outline: none;
}
.form-control-custom::placeholder { color: var(--text-muted); }
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
  background: rgba(14,165,233,0.08);
}
.form-group { margin-bottom: 20px; }
.form-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; display: block; }

/* ===== ACCORDION FAQ ===== */
.accordion-button::after { filter: invert(1) brightness(100); }
.accordion-button:not(.collapsed)::after { filter: invert(1) brightness(100); }
.accordion-button:not(.collapsed) { color: var(--primary) !important; background: transparent !important; box-shadow: none !important; }
.accordion-button:focus { box-shadow: none; border-color: rgba(14,165,233,0.2); }

/* ===== FOOTER ===== */
footer {
  background: #070E1C;
  border-top: 1px solid rgba(14,165,233,0.15);
  padding: 60px 0 0;
}
.footer-brand { font-size: 2.2rem; font-weight: 900; }
.footer-brand span { color: var(--gold); }
.footer-desc { color: var(--text-muted); margin: 15px 0; line-height: 1.8; }
.footer-social a {
  width: 42px; height: 42px;
  background: var(--glass);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s; margin-left: 10px;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.footer-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  transition: all 0.3s; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before { content: '←'; color: var(--primary); transition: transform 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::before { transform: translateX(-5px); }
.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(14,165,233,0.1);
  text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
.footer-bottom a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown { from{opacity:0;transform:translateY(-30px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeRight { from{opacity:0;transform:translateX(30px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(-30px);} to{opacity:1;transform:translateX(0);} }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  text-decoration: none; z-index: 999;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  animation: waPulse 2s infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse {
  0%,100%{box-shadow:0 8px 25px rgba(37,211,102,0.4);}
  50%{box-shadow:0 8px 45px rgba(37,211,102,0.7);}
}

/* ===== BACK TO TOP ===== */
#back-top {
  position: fixed; bottom: 100px; left: 30px;
  width: 50px; height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  text-decoration: none; z-index: 999;
  box-shadow: 0 8px 25px rgba(14,165,233,0.4);
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
#back-top.show { opacity: 1; visibility: visible; }
#back-top:hover { transform: translateY(-3px); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(11,20,38,0.98);
    padding: 15px 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid rgba(14,165,233,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .nav-link { text-align: right; padding: 10px 15px !important; }
  .nav-link::after { display: none; }
  .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  section { padding: 60px 0; }
  .hero-card { margin-top: 40px; padding: 20px; }
  .hero-stat .num { font-size: 2rem; }
  .about-img-main { height: 300px; }
  .about-badge { right: 15px; bottom: -15px; padding: 10px 20px; }
  .about-badge .num { font-size: 1.5rem; }
  .service-card, .why-card { padding: 25px 15px; }
  .work-card { height: 240px; }
  .stat-item .counter { font-size: 2.5rem; }
  .stat-item { padding: 15px; }
  .contact-info-card, .contact-form-card { padding: 20px; }
  .accordion-button { padding: 15px !important; font-size: 0.95rem; }
  .footer-brand { font-size: 1.8rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; gap: 15px !important; }
  .btn-primary-custom, .btn-outline-custom { padding: 12px 20px; font-size: 0.95rem; width: 100%; text-align: center; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-stat .lbl { font-size: 0.8rem; }
  .about-img-main { height: 250px; }
  .work-card { height: 200px; }
  .why-num { font-size: 3.5rem; }
  .area-card { padding: 15px 10px; }
  .area-icon { font-size: 2rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; left: 20px; }
  #back-top { width: 45px; height: 45px; font-size: 1.1rem; bottom: 80px; left: 22px; }
}
