/* MangaGH Imperial Cosmic-Neon Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900;1000&family=Outfit:wght@400;600;700;900&display=swap');

:root {
  --bg-void: #030308;
  --bg-card: rgba(13, 13, 24, 0.75);
  --bg-card-hover: rgba(26, 26, 46, 0.9);
  --monarch-purple: #7c3aed;
  --monarch-glow: rgba(124, 58, 237, 0.6);
  --crimson: #ff2a6d;
  --crimson-glow: rgba(255, 42, 109, 0.6);
  --cyan-glow: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --emerald: #10b981;
  --amber: #f59e0b;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-neon: rgba(124, 58, 237, 0.35);
  --border-glass: rgba(255, 255, 255, 0.08);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;
}

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

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

body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-ar);
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(255, 42, 109, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  cursor: default;
}

/* Custom Glowing Cursor Follower */
#custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--monarch-purple);
  box-shadow: 0 0 25px var(--monarch-glow), 0 0 45px var(--crimson-glow);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s ease-out;
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* Monarch Portal Orbs */
.portal-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulsePortal 12s infinite alternate ease-in-out;
}

.orb-p1 { width: 550px; height: 550px; background: var(--monarch-purple); top: -150px; right: -100px; }
.orb-p2 { width: 500px; height: 500px; background: var(--crimson); bottom: 5%; left: -120px; animation-delay: -6s; }
.orb-p3 { width: 450px; height: 450px; background: var(--cyan-glow); top: 45%; right: 15%; animation-delay: -3s; }

@keyframes pulsePortal {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(30px, 50px); }
}

/* Cyber Canvas Web */
canvas#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 1000;
  font-size: 1.6rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 20px var(--monarch-glow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--monarch-purple);
}

.navbar-brand:hover .brand-icon {
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 0 35px var(--crimson-glow);
}

.brand-text span {
  color: var(--cyan-glow);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--monarch-purple), var(--crimson));
  box-shadow: 0 0 8px var(--crimson);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Continuous Hype Marquee Ticker Banner */
.marquee-banner {
  position: relative;
  z-index: 10;
  margin-top: 80px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(255, 42, 109, 0.18));
  border-bottom: 1px solid var(--border-neon);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
}

.marquee-item i {
  color: var(--crimson);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Neon Glow Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--monarch-purple), var(--crimson));
  color: #ffffff;
  box-shadow: 0 0 25px var(--monarch-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-neon:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px var(--crimson-glow);
  border-color: #ffffff;
}

.btn-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px var(--cyan-dim);
}

.btn-purple:hover {
  box-shadow: 0 0 35px var(--cyan-glow);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  box-shadow: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--monarch-purple);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 6% 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 30px;
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.4);
  color: var(--crimson);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.3);
  animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
  from { box-shadow: 0 0 15px rgba(255, 42, 109, 0.3); }
  to { box-shadow: 0 0 35px rgba(255, 42, 109, 0.7); }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 1000;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px var(--monarch-glow));
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 1000;
  color: var(--cyan-glow);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 700;
}

/* Live Cloud Server Nodes Bar */
.cloud-servers-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(13, 13, 24, 0.7);
  border: 1px solid var(--border-neon);
  border-radius: 18px;
  padding: 16px 24px;
  margin-top: 30px;
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

.server-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.server-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* 📱 Smartphone Device Frame Mockup */
.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mockup-frame {
  width: 320px;
  height: 640px;
  background: #090912;
  border: 10px solid #1a1a2e;
  border-radius: 48px;
  box-shadow: 0 0 60px var(--monarch-glow), 0 0 90px var(--crimson-glow);
  position: relative;
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-mockup-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 0 80px var(--crimson-glow), 0 0 120px var(--monarch-glow);
}

/* Dynamic Island Notch */
.phone-notch {
  width: 100px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #333;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #030308;
  position: relative;
}

.phone-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 38px;
}

.phone-status-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(13, 13, 24, 0.85);
  border: 1px solid var(--border-neon);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan-glow);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px var(--cyan-dim);
}

/* Sections Common Styling */
.section {
  padding: 90px 6%;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  color: var(--crimson);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 1000;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Download Section & iOS PWA Guide */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dl-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-neon);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--monarch-glow);
}

.dl-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--monarch-purple);
  border: 1px solid var(--border-neon);
}

.dl-card.ios .dl-card-icon {
  background: rgba(255, 42, 109, 0.15);
  color: var(--crimson);
  border-color: rgba(255, 42, 109, 0.4);
}

.dl-card-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.dl-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.dl-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.badge-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--monarch-glow);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--monarch-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-neon);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Manga Showcase Cards & Swiper */
.manga-swiper {
  padding-bottom: 50px !important;
}

.manga-card {
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px var(--monarch-glow);
}

.manga-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  position: relative;
  transition: transform 0.5s ease;
}

.manga-card:hover .manga-cover {
  transform: scale(1.05);
}

.manga-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(8px);
  color: var(--crimson);
  border: 1px solid var(--crimson);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 900;
  z-index: 3;
}

.manga-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manga-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rating-star {
  color: #fbbf24;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FAQs Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--border-neon);
  box-shadow: 0 0 25px var(--monarch-glow);
}

.faq-question {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: rgba(124, 58, 237, 0.2);
  color: var(--monarch-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 26px 22px 26px;
}

/* Modal - PWA iOS Installation Guide */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d0d18;
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 60px var(--monarch-glow);
  border-radius: 28px;
  width: 100%;
  max-width: 600px;
  padding: 36px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 42, 109, 0.3);
  color: var(--crimson);
}

.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 18px;
  border-radius: 18px;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--monarch-purple), var(--crimson));
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(3, 3, 8, 0.95);
  padding: 60px 6% 30px 6%;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 400px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  #custom-cursor {
    display: none;
  }
  .phone-mockup-frame {
    width: 280px;
    height: 560px;
  }
}
