/* ==========================================================================

   ========================================================================== */

/* --------------------------------------------------------------------------
   1)  (Design variables)
   -------------------------------------------------------------------------- */
:root {
  --nabta-blue: #02a9f4;
  --nabta-blue-dark: #0288c9;
  --nabta-green: #8bc34a;
  --nabta-green-dark: #6f9e37;
  --nabta-yellow: #ffc107;
  --nabta-yellow-dark: #c98f00;
  --nabta-red: #ff5252;
  --nabta-dark: #1e293b;
  --nabta-text: #475569;
  --nabta-light: #f8fafc;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 5.5rem;
  --radius-xl: 2.5rem;
  --shadow-soft: 0 10px 30px -12px rgb(30 41 59 / 0.18);
  --shadow-lift: 0 24px 48px -18px rgb(30 41 59 / 0.28);
}

/* --------------------------------------------------------------------------
   2) main reset + base styles
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  /* Prevent titles from disappearing under the fixed navbar when 
  navigating to sections.*/
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: 'Tajawal', system-ui, sans-serif;
  background-color: #fff;
  color: var(--nabta-text);
  overflow-x: clip;
}

/* Important: The horizontal pop-up animation (translateX) 
and active tab shift create a scrollable flood zone on small
 screens. Section-level clipping prevents horizontal scrolling
  without creating a scroll container (clip does not break position:sticky). */
main > section,
footer { overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', system-ui, sans-serif;
  color: var(--nabta-dark);
  text-wrap: balance;
}

p, li { line-height: 1.85; }

/* Highlighting the focus loop for keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--nabta-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* scroll bar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--nabta-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--nabta-green), var(--nabta-blue));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--nabta-blue); }

/* --------------------------------------------------------------------------
   3) (Keyframes)
   -------------------------------------------------------------------------- */
@keyframes nb-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -16px, 0) rotate(-1deg); }
}

@keyframes nb-float-soft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}

@keyframes nb-bounce-slow {
  0%, 100% { transform: translateY(-12%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%      { transform: translateY(0);    animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes nb-pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.65; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}

@keyframes nb-spin-slow { to { transform: rotate(360deg); } }

@keyframes nb-blob-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(6%, -8%, 0) scale(1.12); }
  66%  { transform: translate3d(-7%, 5%, 0) scale(0.94); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nb-gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes nb-shine-sweep {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(260%)  skewX(-18deg); }
}

@keyframes nb-leaf-fall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg);      opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.45; }
  100% { transform: translate3d(var(--drift, 40px), 108vh, 0) rotate(420deg); opacity: 0; }
}

@keyframes nb-bee-path {
  0%   { transform: translate3d(40px, 0, 0) scaleX(1); }
  25%  { transform: translate3d(-8px, -22px, 0) scaleX(1); }
  50%  { transform: translate3d(-42px, 8px, 0) scaleX(1); }
  51%  { transform: translate3d(-42px, 8px, 0) scaleX(-1); }
  75%  { transform: translate3d(-0px, 26px, 0) scaleX(-1); }
  99%  { transform: translate3d(40px, 0, 0) scaleX(-1); }
  100% { transform: translate3d(40px, 0, 0) scaleX(1); }
}

@keyframes nb-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-9deg); }
  75%      { transform: rotate(9deg); }
}

@keyframes nb-marquee { to { transform: translateX(50%); } }

@keyframes nb-underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes nb-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@keyframes nb-dots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

@keyframes nb-pane-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nb-fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes nb-modal-pop {
  0%   { opacity: 0; transform: scale(0.88) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes nb-ripple {
  to { transform: scale(4); opacity: 0; }
}

/*  Ready-made animation tools */
.animate-float        { animation: nb-float 6s var(--ease-in-out-soft) infinite; }
.animate-float-soft   { animation: nb-float-soft 4.5s ease-in-out infinite; }
.animate-bounce-slow  { animation: nb-bounce-slow 3s infinite; }
.animate-spin-slow    { animation: nb-spin-slow 22s linear infinite; }
.animate-wiggle-hover:hover { animation: nb-wiggle 0.5s ease-in-out; }
.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

/* --------------------------------------------------------------------------
   4) hover display system (Scroll Reveal)
   IntersectionObserver in js/main.js
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo),
    filter 0.6s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Safety net: If JavaScript fails, 
all content remains visible (important for SEO) */
html:not(.js) [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
html:not(.js) .title-rule   { transform: scaleX(1) !important; }
html:not(.js) #page-loader  { display: none !important; }

/* --------------------------------------------------------------------------
4-b) Entering the Hero content with
 pure CSS animation without relying on JS.
Content above the fold must not be linked to
 the scroll monitor under any circumstances.
   -------------------------------------------------------------------------- */
@keyframes nb-hero-in {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes nb-hero-in-start {
  from { opacity: 0; transform: translate3d(48px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes nb-hero-in-zoom {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-in       { animation: nb-hero-in 0.65s var(--ease-out-expo) both;      animation-delay: var(--reveal-delay, 0ms); }
.hero-in-start { animation: nb-hero-in-start 0.65s var(--ease-out-expo) both; animation-delay: var(--reveal-delay, 0ms); }
.hero-in-zoom  { animation: nb-hero-in-zoom 0.85s var(--ease-out-back) both;  animation-delay: var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-in-start, .hero-in-zoom {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
[data-reveal="up"]    { transform: translate3d(0, 46px, 0); }
[data-reveal="down"]  { transform: translate3d(0, -40px, 0); }
/* /// */
[data-reveal="start"] { transform: translate3d(64px, 0, 0); }
[data-reveal="end"]   { transform: translate3d(-64px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(0.86); }
[data-reveal="blur"]  { filter: blur(14px); transform: translate3d(0, 24px, 0); }
[data-reveal="flip"]  { transform: perspective(1000px) rotateX(-18deg) translateY(30px); transform-origin: top center; }

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) perspective(1000px) rotateX(0deg);
}

/* --------------------------------------------------------------------------
   5) Animated background components
   -------------------------------------------------------------------------- */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  animation: nb-blob-drift 18s ease-in-out infinite;
}
.bg-blob.blob-slow { animation-duration: 26s; animation-delay: -6s; }
.bg-blob.blob-fast { animation-duration: 14s; animation-delay: -3s; }

.relative-content { position: relative; z-index: 10; }

/* Fallen leaves in the background */
.leaf-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.leaf {
  position: absolute;
  top: -6vh;
  font-size: var(--size, 22px);
  animation: nb-leaf-fall var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

/* Animated gradient text */
.text-gradient {
  background: linear-gradient(110deg, var(--nabta-blue), var(--nabta-green), var(--nabta-yellow), var(--nabta-blue));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nb-gradient-pan 9s ease-in-out infinite;
}

/* A line under the title is drawn when it appears */
.title-rule {
  height: 6px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: right center; /* RTL */
  transition: transform 0.9s var(--ease-out-expo) 0.15s;
}
.is-visible .title-rule,
.title-rule.is-visible { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   6) scroll-progress
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  z-index: 60;
  background: linear-gradient(90deg, var(--nabta-blue), var(--nabta-green), var(--nabta-yellow));
  transform: scaleX(0);
  transform-origin: right center; /* RTL */
  will-change: transform;
}

#main-nav {
  transition: height 0.4s var(--ease-out-expo), box-shadow 0.4s ease, background-color 0.4s ease;
}
#main-nav .nav-inner {
  height: var(--nav-h);
  transition: height 0.4s var(--ease-out-expo);
}
#main-nav.is-scrolled { box-shadow: 0 8px 28px -14px rgb(30 41 59 / 0.35); }
#main-nav.is-scrolled .nav-inner { height: 4.25rem; }
/* #main-nav.is-scrolled .nav-logo { transform: scale(0.84); } */
.nav-logo { transition: transform 0.4s var(--ease-out-back); transform-origin: right center; }

/* Navbar link with scrolling bottom line + active status by section*/
.nav-link {
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  border-radius: 99px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out-expo);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--nabta-blue); }

/* mobile-menu */
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}
#mobile-menu.is-open { grid-template-rows: 1fr; }
#mobile-menu > div { min-height: 0; overflow: hidden; }
#mobile-menu a {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 60ms);
}
#mobile-menu.is-open a { opacity: 1; transform: translateX(0); }

/* //// */
.burger { display: block; width: 26px; height: 18px; position: relative; }
.burger span {
  position: absolute;
  inset-inline: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--nabta-dark);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.25s ease, width 0.4s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7.5px; width: 70%; }
.burger span:nth-child(3) { top: 15px; }
.burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: translateX(-14px); }
.burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7) Interactive buttons and cards
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, #ffffff52, transparent);
  transform: translateX(-150%) skewX(-18deg);
  z-index: -1;
}
.btn:hover::before { animation: nb-shine-sweep 0.85s ease-out; }

/* (Ripple) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  transform: scale(0);
  animation: nb-ripple 0.65s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

/* A card rises and lights up */
.card-lift {
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease, border-color 0.35s ease;
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}

/* 3D tilt card follows mouse */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease;
}
.card-tilt .tilt-inner { transform: translateZ(28px); }

/* // */
.card-glow { position: relative; overflow: hidden; }
.card-glow::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(2 169 244 / 0.14), transparent 70%);
  top: var(--my, 50%);
  left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

/* An icon inside the card moves with the traffic. */
.icon-pop { transition: transform 0.45s var(--ease-out-back), background-color 0.35s ease, color 0.35s ease; }
.group:hover .icon-pop { transform: scale(1.12) rotate(-8deg); }

/* --------------------------------------------------------------------------
   8) رحلة الطفل — tabs
   -------------------------------------------------------------------------- */
.journey-tab-btn {
  transition: transform 0.35s var(--ease-out-back), border-color 0.3s ease,
              background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.journey-tab-btn:hover { transform: translateX(-4px); }
.journey-tab-btn.active {
  transform: translateX(-8px);
  box-shadow: 0 12px 24px -14px rgb(30 41 59 / 0.4);
}
.journey-content-pane { animation: nb-pane-in 0.55s var(--ease-out-expo) both; }
.journey-content-pane[hidden] { display: none; }

/* ظهور متتالٍ لعناصر داخل اللوحة */
.journey-content-pane .stagger-item {
  animation: nb-pane-in 0.55s var(--ease-out-expo) both;
  animation-delay: calc(0.08s + var(--i, 0) * 0.09s);
}

/* --------------------------------------------------------------------------
   9) Numbers and counter
   -------------------------------------------------------------------------- */
.counter-value { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   10) Qs (Accordion)
   -------------------------------------------------------------------------- */
.faq-item { transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease; }
.faq-item.is-open { box-shadow: var(--shadow-soft); border-color: rgb(2 169 244 / 0.35); }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { min-height: 0; overflow: hidden; }
.faq-icon { transition: transform 0.4s var(--ease-out-back), color 0.3s ease; }
.faq-item.is-open .faq-icon { transform: rotate(180deg); color: var(--nabta-blue); }

/* --------------------------------------------------------------------------
   11) Marquee (moving bar) of values
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: nb-marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   12) Smart Advisor — Writing Indicator
   -------------------------------------------------------------------------- */
.typing-dots span {
  display: inline-block;
  width: 9px; height: 9px;
  margin-inline: 2px;
  border-radius: 50%;
  background: var(--nabta-green);
  animation: nb-dots 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

.typing-caret::after {
  content: "▌";
  color: var(--nabta-green);
  animation: nb-caret 0.9s step-end infinite;
  margin-inline-start: 2px;
}

/* --------------------------------------------------------------------------
   13) pop-up window (Modal)
   -------------------------------------------------------------------------- */
#custom-alert { transition: opacity 0.3s ease; }
#custom-alert.is-open #custom-alert-content { animation: nb-modal-pop 0.45s var(--ease-out-back) both; }

/* --------------------------------------------------------------------------
   14) Floating buttons (WhatsApp + Top)
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fab {
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out-back), opacity 0.35s ease, visibility 0.35s;
  position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.08); }
.fab-whatsapp { background: #608827; }
.fab-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c35e;
  animation: nb-pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}
.fab-top { background: #04619b; opacity: 0; visibility: hidden; transform: translateY(14px); }
.fab-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   15) Page Loader
   -------------------------------------------------------------------------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-bee { font-size: 3rem; animation: nb-bee-path 2.5s ease-in-out infinite; }

/* نحلة تطير في قسم المستشارة */
.flying-bee { animation: nb-bee-path 7s ease-in-out infinite; display: inline-block; }

/* --------------------------------------------------------------------------
   16) Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .title-rule { transform: scaleX(1) !important; }
  .leaf-field, .bg-blob { display: none; }
}

/* --------------------------------------------------------------------------
   17)  Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --nav-h: 4.5rem; }
  .bg-blob { filter: blur(60px); opacity: 0.2; }
  .card-tilt { transform: none !important; }
  .fab-stack { inset-block-end: 1rem; inset-inline-start: 1rem; }
}

@media print {
  .fab-stack, #scroll-progress, #page-loader, #main-nav { display: none !important; }
}


/* ////////////////////////////////////////////////////////// */
/* ////////////////////////////////////////////////////////// */

.img_dev{
    width: 55px;
    height: 63px;

}
/* //// */
.nav-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* /// */
.img_dev_nahla{
    width: 40px;
    height: 46px;

}
/* ///////// */
.img_nahla_load{
    width: 40px;
    height: 46px;

}
/* ///////// */
.img_nahla_mostashar{
    width: 30px;
    height: 34px;

}
/* ///////// */
.btn_mostashar{
  background-color: #608827;
}
/* ///////// */

@media (max-width: 640px) {
.btn_mostashar{
  font-size: 14px;
  display: flex;
  align-items: center;
}
.img_dev{
    width: 43px;
    height: 49px;

}
}


@media (max-width: 420px) {
.btn_mostashar{
    height: 37px;
  font-size: 12px;
}
}