:root {
  --aura-black:   #000000;
  --aura-dark:    #0d0d0d;
  --aura-navy:    #181818;
  --aura-purple:  #c49218;
  --aura-violet:  #e0aa1c;
  --aura-silver:  #c6c6c6;
  --aura-white:   #f5e2b8;
  --aura-gold:    #c49218;
  --aura-green:   #22c55e;
  --overlay:      rgba(0,0,0,.65);
}

html { scroll-behavior:smooth; direction:rtl; }

body {
  background: var(--aura-black);
  color: var(--aura-white);
  overflow-x: hidden;
}

/* push content below fixed navbar */
.storymap-container {
  padding-top: 0;
}

/* ── Loading Screen ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--aura-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
}
.loading-overlay.hidden { opacity:0; visibility:hidden; }

.loading-content { text-align:center; }
.loading-brand {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
}
.loading-brand span { color: var(--aura-violet); }
.loading-tagline { font-size:1rem; color:#888; margin-bottom:30px; }
.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aura-purple), var(--aura-violet));
  border-radius: 2px;
  animation: loadBar 1.8s ease-in-out forwards;
}
@keyframes loadBar { from{width:0} to{width:100%} }

/* ── Story Container ── */
.storymap-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ── Nav Dots ── */
.story-nav {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
}
.nav-dot:hover { background: rgba(167,139,250,.6); }
.nav-dot.active {
  background: var(--aura-violet);
  border-color: rgba(167,139,250,.4);
  transform: scale(1.3);
}

/* ── Section Labels on Nav ── */
.story-nav .nav-dot[data-label]::after {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size:.72rem;
  padding: 3px 8px;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  transition: opacity .2s;
  pointer-events: none;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
  opacity:.7;
  animation: bounce 2s infinite;
  color: #aaa;
  font-size: .8rem;
}
.scroll-hint i { display:block; font-size:1.2rem; margin-bottom:4px; }
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-8px)}
}

/* ── Story Section Base ── */
.story-section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 60px 60px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
  overflow: hidden;
}
.story-section.active { opacity:1; pointer-events:all; }
.story-section::before {
  content:'';
  position:absolute;
  inset:0;
  background: var(--overlay);
}

/* Section 0 – Hero */
.section-hero { background: linear-gradient(135deg, #0a0a0f 0%, #12122e 40%, #1e0a3c 70%, #0a0a1a 100%); }
/* Section 1 – Problem */
.section-problem { background: linear-gradient(135deg, #0f0a00 0%, #1a1000 50%, #0a0500 100%); }
/* Section 2 – Birth */
.section-birth { background: linear-gradient(135deg, #0a001a 0%, #1a003a 50%, #0d0020 100%); }
/* Section 3 – Vision */
.section-vision { background: linear-gradient(135deg, #001a0a 0%, #003a1a 50%, #00200d 100%); }
/* Section 4 – Values */
.section-values { background: linear-gradient(135deg, #00101a 0%, #00253a 50%, #001220 100%); }
/* Section 5 – Fleet */
.section-fleet { background: linear-gradient(135deg, #1a000a 0%, #3a0010 50%, #20000d 100%); }
/* Section 6 – Numbers */
.section-numbers { background: linear-gradient(135deg, #0a0a1a 0%, #15153a 50%, #0a0a20 100%); }
/* Section 7 – Future */
.section-future { background: radial-gradient(ellipse at center, #1e0a3c 0%, #0a0a0f 70%); }

/* ── Story Content Layout ── */
.story-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}
.story-content.centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 750px;
}

/* ── Text Side ── */
.story-text { }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--aura-violet);
  margin-bottom: 14px;
  padding: 4px 14px;
  border: 1px solid rgba(167,139,250,.4);
  border-radius: 20px;
}
.story-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}
.story-title .highlight { color: var(--aura-violet); }
.story-title .gold { color: var(--aura-gold); }
.story-description {
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  color: var(--aura-silver);
  line-height: 1.9;
  margin-bottom: 16px;
}
.story-quote {
  border-right: 3px solid var(--aura-violet);
  padding: 14px 20px;
  margin-top: 20px;
  background: rgba(124,58,237,.1);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--aura-violet);
}

/* ── Media Side ── */
.story-media { position: relative; }

/* Decorative Card */
.info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
}
.info-card h3 { color: #fff; font-size:1.1rem; margin-bottom:16px; }

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-box {
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.stat-box .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--aura-violet);
  display: block;
}
.stat-box .lbl { font-size: .78rem; color: #999; margin-top: 4px; }

/* Icon List */
.icon-list { list-style: none; display:flex; flex-direction:column; gap:14px; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .95rem;
  color: var(--aura-silver);
}
.icon-list li .ico {
  width: 38px; height: 38px; flex-shrink:0;
  border-radius: 10px;
  display: flex; align-items:center; justify-content:center;
  font-size: 1rem;
}
.ico-purple { background: rgba(124,58,237,.2); color: var(--aura-violet); }
.ico-gold   { background: rgba(244,196,48,.15); color: var(--aura-gold);   }
.ico-green  { background: rgba(34,197,94,.15);  color: var(--aura-green);  }
.ico-red    { background: rgba(239,68,68,.15);   color: #ef4444; }

/* Value Cards */
.value-cards { display:flex; flex-direction:column; gap:14px; }
.value-card {
  display:flex; align-items:center; gap:16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 20px;
  transition: background .3s;
}
.value-card:hover { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.3); }
.value-card .v-icon {
  width:44px; height:44px; flex-shrink:0;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.2rem;
}
.value-card .v-text h4 { color:#fff; font-size:.9rem; margin:0 0 3px; }
.value-card .v-text p  { color:#888; font-size:.8rem; margin:0; line-height:1.5; }

/* Fleet Cards */
.fleet-cards { display:flex; flex-direction:column; gap:12px; }
.fleet-card {
  display:flex; align-items:center; gap:16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius:14px; padding:14px 18px;
}
.fleet-badge {
  padding: 3px 10px; border-radius:20px;
  font-size:.72rem; font-weight:700; margin-top:4px; display:inline-block;
}
.badge-eco  { background:rgba(34,197,94,.15);  color:var(--aura-green); }
.badge-vip  { background:rgba(244,196,48,.15); color:var(--aura-gold); }
.badge-corp { background:rgba(124,58,237,.2);  color:var(--aura-violet); }
.fleet-card .f-icon { font-size:1.8rem; flex-shrink:0; }
.fleet-card .f-text h4 { color:#fff; font-size:.9rem; margin:0 0 2px; }
.fleet-card .f-text p  { color:#888; font-size:.78rem; margin:0; }

/* Timeline */
.timeline { display:flex; flex-direction:column; gap:0; }
.timeline-item {
  display:flex; gap:20px;
  padding-bottom: 24px;
  position:relative;
}
.timeline-item:last-child { padding-bottom:0; }
.t-left { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.t-dot {
  width:14px; height:14px; border-radius:50%;
  background: var(--aura-violet);
  border: 2px solid rgba(167,139,250,.4);
  flex-shrink:0;
  margin-top:4px;
}
.t-line {
  width:2px; flex:1;
  background: linear-gradient(to bottom, rgba(124,58,237,.4), rgba(124,58,237,.05));
  margin-top:6px;
}
.t-content .year { font-size:.75rem; color:var(--aura-violet); font-weight:700; margin-bottom:4px; }
.t-content p { font-size:.88rem; color:#aaa; margin:0; line-height:1.7; }

/* Future Vision Cards */
.future-cards { display:flex; flex-direction:column; gap:12px; }
.future-card {
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px; padding:16px 20px;
  display:flex; align-items:center; gap:14px;
}
.future-card .f-num {
  font-size:1.8rem; font-weight:900;
  color:var(--aura-violet);
  min-width:50px;
}
.future-card .f-info h4 { color:#fff; font-size:.88rem; margin:0 0 3px; }
.future-card .f-info p  { color:#888; font-size:.78rem; margin:0; }

/* Hero special layout */
.hero-logo { font-size:4rem; font-weight:900; letter-spacing:3px; color:#fff; line-height:3; }
.hero-logo span { color:var(--aura-violet); }
.hero-tagline { font-size:1.4rem; color:#aaa; margin:8px 0 24px; font-style:italic; }
.hero-desc { font-size:1rem; color:var(--aura-silver); max-width:500px; line-height:1.9; }
.hero-cta {
  display:inline-flex; align-items:center; gap:10px;
  background: var(--aura-purple);
  color:#fff; padding:14px 28px;
  border-radius:50px; text-decoration:none;
  font-weight:700; font-size:.95rem;
  margin-top:28px;
  transition: background .2s, transform .2s;
  cursor:pointer; border:none;
}
.hero-cta:hover { background:#6d28d9; transform:scale(1.03); }

/* Stars bg effect */
.stars-bg {
  position:absolute; inset:0; z-index:1;
  background-image:
    radial-gradient(circle, rgba(167,139,250,.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px, 30px 30px;
  background-position: 0 0, 15px 15px;
  animation: starsMove 40s linear infinite;
}
@keyframes starsMove { to { background-position: 60px 60px, 75px 75px; } }

/* Problem illustration */
.prob-illustration {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.prob-card {
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,0,0,.12);
  border-radius:14px; padding:18px; text-align:center;
}
.prob-card .p-icon { font-size:2rem; margin-bottom:10px; }
.prob-card h4 { color:#ef4444; font-size:.85rem; margin:0 0 6px; }
.prob-card p  { color:#888; font-size:.78rem; margin:0; line-height:1.6; }

/* Animations */
.fade-in { animation: fadeIn .9s ease .3s both; }
.slide-in-right { animation: slideRight .9s ease .4s both; }
.slide-in-left  { animation: slideLeft  .9s ease .4s both; }

@keyframes fadeIn    { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes slideRight{ from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:none} }
@keyframes slideLeft { from{opacity:0;transform:translateX(-40px)} to{opacity:1;transform:none} }

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .story-section { padding: 80px 20px 40px; }
  .story-content { grid-template-columns:1fr; gap:24px; }
  .story-content.centered { padding:0 10px; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .hero-logo { font-size:2.6rem; }
  .story-nav { left:8px; }
  .nav-dot { width:8px; height:8px; }
  .story-title { font-size:1.4rem; }
  .prob-illustration { grid-template-columns:1fr 1fr; }
}

/* ── Responsive: Mobile — convert to normal scroll ── */
@media (max-width: 768px) {
  .storymap-container {
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
  }

  .story-section {
    position: relative;
    inset: auto;
    display: none;
    height: auto;
    min-height: 100dvh;
    padding: 75px 16px 50px;
    opacity: 1 !important;
    pointer-events: all !important;
    transition: none;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
  }

  .story-section.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .story-nav {
    left: 6px;
    gap: 7px;
  }

  .nav-dot { width: 7px; height: 7px; }

  /* Override both class-based and inline grid styles */
  .story-content,
  .story-content[style] {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 18px;
    max-width: 100% !important;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  /* Remove max-height clipping so all content is visible */
  .story-media {
    max-height: none;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
  }

  .info-card {
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-box { padding: 12px; }
  .stat-box .num { font-size: 1.4rem; }

  /* Hero sizing */
  .hero-logo { font-size: 1.8rem; }
  .hero-tagline { font-size: .95rem; margin: 6px 0 16px; }
  .hero-desc { font-size: .88rem; max-width: 100%; }
  .hero-cta { font-size: .85rem; padding: 12px 22px; margin-top: 20px; }

  .story-title { font-size: 1.25rem; }
  .story-description { font-size: .88rem; }
  .section-label { font-size: .7rem; }

  /* Icon list tighter on mobile */
  .icon-list { gap: 12px; }
  .icon-list li { font-size: .85rem; gap: 10px; }
  .icon-list li .ico { width: 32px; height: 32px; font-size: .85rem; flex-shrink: 0; }

  /* Value / fleet / future cards */
  .value-cards, .fleet-cards, .future-cards {
    max-height: none;
    overflow-y: visible;
    gap: 10px;
  }
  .value-card { padding: 12px 14px; gap: 12px; }
  .value-card .v-icon { width: 36px; height: 36px; font-size: 1rem; }
  .value-card .v-text h4 { font-size: .85rem; }
  .value-card .v-text p  { font-size: .75rem; }

  .fleet-card { padding: 10px 14px; gap: 12px; }
  .fleet-card .f-icon { font-size: 1.5rem; }
  .fleet-card .f-text h4 { font-size: .85rem; }
  .fleet-card .f-text p  { font-size: .75rem; }

  .future-card { padding: 12px 14px; gap: 10px; }
  .future-card .f-num { font-size: 1.4rem; min-width: 40px; }
  .future-card .f-info h4 { font-size: .82rem; }
  .future-card .f-info p  { font-size: .74rem; }

  /* Problem cards */
  .prob-illustration {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: none;
  }
  .prob-card { padding: 12px; }
  .prob-card .p-icon { font-size: 1.5rem; }
  .prob-card h4 { font-size: .78rem; }
  .prob-card p  { font-size: .72rem; }

  /* Story quote */
  .story-quote { font-size: .85rem; padding: 10px 14px; }

  .scroll-hint { display: none; }
  .loading-brand { font-size: 2.4rem; }
}

@media (max-width: 400px) {
  .story-section { padding: 70px 12px 44px; }
  .prob-illustration { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo { font-size: 1.6rem; }
}
