/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Logo-matched palette */
  --orange:       #FF8B2E;
  --orange-dark:  #E6720F;
  --orange-light: #FFB066;
  --blue:         #3D8FE0;
  --blue-dark:    #1E6DC0;
  --blue-light:   #7DBFFF;
  --yellow:       #F5C200;
  --yellow-dark:  #D9A800;
  --red:          #E84040;
  --green:        #3DBF6E;
  --purple:       #9B5FD6;

  /* Structural */
  --navy:         #0D1B3E;
  --navy-light:   #152952;
  --white:        #FFFFFF;
  --cream:        #FFF8EF;
  --gray:         #F5F0E8;
  --text:         #1A1A2E;
  --text-soft:    #6B7A99;
  --red-yt:       #FF0000;

  --radius:    16px;
  --radius-lg: 28px;
  --shadow:    0 8px 32px rgba(13,27,62,.1);
  --shadow-lg: 0 16px 48px rgba(13,27,62,.18);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 99px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  padding: 10px 5%;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,27,62,.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}

/* Logo image in nav */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 52px; width: auto;
  mix-blend-mode: screen;
  transition: var(--transition);
}

/* Text fallback */
.nav-logo-text { font-size: 1.7rem; font-weight: 900; }
.logo-yalla  { color: var(--yellow); }
.logo-nantaq { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  padding: 8px 16px; border-radius: 99px;
  font-weight: 600; font-size: .95rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--yellow); background: rgba(255,255,255,.08); }

.btn-subscribe {
  background: var(--red-yt) !important;
  color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 99px !important;
  font-weight: 700 !important;
  display: flex; align-items: center; gap: 7px;
  transition: var(--transition) !important;
}
.btn-subscribe:hover { background: #cc0000 !important; transform: translateY(-2px); }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 40%, #1A3570 70%, #0D1B3E 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 100px 5% 60px;
}

/* Stars */
.stars { position: absolute; inset: 0; z-index: 0; }
.star {
  position: absolute; border-radius: 50%;
  background: var(--white); opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes twinkle {
  0%,100%{ opacity:0; transform:scale(.5); }
  50%    { opacity:.8; transform:scale(1.2); }
}

/* Colorful floating shapes */
.shape {
  position: absolute; border-radius: 50%; opacity: .07;
  animation: float 8s ease-in-out infinite;
}
.shape-1 { width:500px; height:500px; background:var(--orange); top:-150px; right:-100px; animation-duration:10s; }
.shape-2 { width:300px; height:300px; background:var(--blue);   bottom:-80px; left:-60px; animation-duration:7s; animation-delay:-3s; }
.shape-3 { width:200px; height:200px; background:var(--yellow); top:40%; left:15%; animation-duration:6s; animation-delay:-1.5s; }

@keyframes float {
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%    { transform:translateY(-30px) rotate(10deg); }
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  width: min(1200px,100%); margin-inline: auto;
}

/* Hero logo display */
.hero-logo-img {
  max-width: 340px; margin-bottom: 20px;
  mix-blend-mode: screen;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,139,46,.15);
  border: 1px solid rgba(255,139,46,.35);
  color: var(--orange-light);
  padding: 8px 20px; border-radius: 99px;
  font-size: .9rem; font-weight: 700; margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 900; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--orange-light), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75); line-height: 1.7;
  margin-bottom: 36px; max-width: 480px;
}
.hero-subtitle strong { color: var(--orange-light); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 99px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(255,139,46,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(255,139,46,.55); }

.btn-youtube {
  background: var(--red-yt); color: var(--white);
  box-shadow: 0 6px 24px rgba(255,0,0,.3);
}
.btn-youtube:hover { background:#cc0000; transform:translateY(-3px); box-shadow:0 10px 32px rgba(255,0,0,.4); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background:var(--orange); color:var(--white); transform:translateY(-3px); }

.btn-store {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(245,194,0,.35);
}
.btn-store:hover { transform:translateY(-3px); box-shadow:0 10px 32px rgba(245,194,0,.5); }

.btn-lg { padding:18px 36px; font-size:1.15rem; }

/* Hero Stats */
.hero-stats { display:flex; align-items:center; gap:24px; }
.stat { text-align:center; }
.stat-num { font-size:2rem; font-weight:900; color:var(--yellow); display:block; }
.stat span { color:var(--orange-light); }
.stat-label { font-size:.8rem; color:rgba(255,255,255,.6); display:block; }
.stat-divider { width:1px; height:40px; background:rgba(255,255,255,.15); }

/* Hero Character */
.hero-character {
  position:relative; display:flex;
  align-items:center; justify-content:center;
}
.character-glow {
  position:absolute; width:420px; height:420px;
  background: radial-gradient(circle, rgba(255,139,46,.2) 0%, rgba(61,143,224,.1) 50%, transparent 70%);
  border-radius:50%;
}
.character-ring {
  position:absolute; border-radius:50%;
  border:2px dashed rgba(255,139,46,.25);
  animation:spin 20s linear infinite;
}
.ring-1 { width:380px; height:380px; border-color:rgba(61,143,224,.25); }
.ring-2 { width:460px; height:460px; animation-direction:reverse; animation-duration:30s; }
@keyframes spin { to { transform:rotate(360deg); } }

.character-img {
  width: 600px; max-width: 100%;
  position:relative; z-index:2;
  animation:heroFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(255,139,46,.3));
}
@keyframes heroFloat {
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-18px); }
}

.char-fallback {
  display:none; flex-direction:column;
  align-items:center; justify-content:center;
  width:280px; height:280px;
  background:rgba(255,139,46,.1);
  border:3px dashed rgba(255,139,46,.4);
  border-radius:50%; z-index:2;
  animation:heroFloat 4s ease-in-out infinite;
}
.char-emoji { font-size:8rem; }
.char-fallback p { color:var(--orange-light); font-weight:700; font-size:1.2rem; }

/* Float badges */
.float-badge {
  position:absolute; z-index:3;
  background:rgba(13,27,62,.85); backdrop-filter:blur(8px);
  border:1px solid rgba(255,139,46,.3);
  color:var(--white); padding:10px 16px;
  border-radius:99px; font-size:.85rem; font-weight:700;
  display:flex; align-items:center; gap:7px;
  white-space:nowrap;
}
.float-badge i { color:var(--yellow); }
.badge-top-right  { top:8%;  left:0;  animation:badgeFloat 3s ease-in-out infinite; }
.badge-bottom-left{ bottom:15%; right:0; animation:badgeFloat 3s ease-in-out infinite .5s reverse; }
@keyframes badgeFloat {
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-8px); }
}

.scroll-down {
  position:absolute; bottom:30px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,.4); font-size:1.5rem;
  animation:bounce 2s ease-in-out infinite; z-index:2;
}
@keyframes bounce {
  0%,100%{ transform:translateX(-50%) translateY(0); }
  50%    { transform:translateX(-50%) translateY(10px); }
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--yellow-dark));
  overflow:hidden; padding:18px 0;
}
.strip-items {
  display:flex; gap:0;
  animation:marquee 20s linear infinite;
  width:max-content;
}
.strip-item {
  display:flex; align-items:center; gap:10px;
  color:var(--white); font-weight:700; font-size:1rem;
  padding:0 36px; white-space:nowrap;
  border-right:2px solid rgba(255,255,255,.25);
}
.strip-item i { color:rgba(255,255,255,.85); font-size:1.1rem; }
@keyframes marquee {
  0%  { transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section { padding:100px 0; }

.section-header { text-align:center; margin-bottom:56px; }
.section-tag {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,139,46,.1); color:var(--orange-dark);
  border:1px solid rgba(255,139,46,.3);
  padding:7px 18px; border-radius:99px;
  font-size:.9rem; font-weight:700; margin-bottom:14px;
}
.section-title {
  font-size:clamp(1.8rem, 4vw, 2.8rem);
  font-weight:900; color:var(--navy); margin-bottom:12px;
}
.section-desc { color:var(--text-soft); font-size:1.05rem; max-width:550px; margin-inline:auto; }

/* ===== VIDEOS SECTION ===== */
.videos-section { background:var(--cream); }

.video-filters {
  display:flex; gap:10px; justify-content:center;
  margin-bottom:36px; flex-wrap:wrap;
}
.filter-btn {
  padding:9px 24px; border-radius:99px;
  border:2px solid var(--orange); background:transparent;
  color:var(--orange-dark); font-family:'Tajawal',sans-serif;
  font-size:.95rem; font-weight:700; cursor:pointer;
  transition:var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background:var(--orange); color:var(--white);
}

.videos-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:28px; margin-bottom:44px;
}

.video-card {
  background:var(--white); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow);
  transition:var(--transition); cursor:pointer; display:block; color:inherit;
}
.video-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-lg); }

.video-thumb {
  position:relative; aspect-ratio:16/9; overflow:hidden;
}
.video-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.video-card:hover .video-thumb img { transform:scale(1.07); }

.video-play-btn {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(13,27,62,.3); transition:var(--transition);
}
.video-play-btn i {
  width:60px; height:60px; border-radius:50%;
  background:var(--white); color:var(--orange);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; transition:var(--transition);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}
.video-card:hover .video-play-btn i { transform:scale(1.15); color:var(--red-yt); }

.video-tag {
  position:absolute; top:12px; right:12px;
  background:var(--blue); color:var(--white);
  padding:4px 12px; border-radius:99px;
  font-size:.75rem; font-weight:700;
}
.video-tag.new-tag { background:var(--orange); color:var(--white); }

.video-info { padding:18px 20px; }
.video-info h3 {
  font-size:1rem; font-weight:700; color:var(--navy);
  margin-bottom:6px; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden;
}
.video-meta {
  display:flex; align-items:center; gap:12px;
  color:var(--text-soft); font-size:.82rem;
}
.video-meta i { color:var(--orange); }

/* Loading / Error */
.videos-loading, .videos-error {
  grid-column:1/-1;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:16px; padding:60px 20px;
  color:var(--text-soft); font-size:1.1rem; font-weight:600; text-align:center;
}
.videos-loading i { font-size:2.5rem; color:var(--orange); }
.videos-error   i { font-size:3rem;   color:var(--red-yt); }
.videos-error   p { color:var(--text-soft); margin-bottom:8px; }

.videos-cta { text-align:center; }

/* ===== COMING SOON ===== */
.coming-section { position:relative; overflow:hidden; padding:120px 0; }

.challenges-section {
  background: linear-gradient(145deg, var(--navy) 0%, #1A3570 50%, #0D2A5E 100%);
}
.store-section {
  background: linear-gradient(145deg, #1A0A00 0%, #2E1200 50%, #3D1800 100%);
}

.coming-bg-shapes { position:absolute; inset:0; z-index:0; }
.cs-shape { position:absolute; border-radius:50%; opacity:.08; }
.cs-shape-1 { width:600px; height:600px; background:var(--blue);   top:-200px; right:-150px; animation:float 12s ease-in-out infinite; }
.cs-shape-2 { width:300px; height:300px; background:var(--yellow); bottom:-100px; left:-80px; animation:float 9s  ease-in-out infinite .5s; }
.cs-shape-3 { width:500px; height:500px; background:var(--orange); top:-150px; left:-120px; animation:float 11s ease-in-out infinite; }
.cs-shape-4 { width:350px; height:350px; background:var(--yellow); bottom:-80px; right:-60px; animation:float 8s  ease-in-out infinite 1s; }

.coming-inner {
  position:relative; z-index:2;
  display:flex; flex-direction:column;
  align-items:center; text-align:center;
  max-width:700px; margin-inline:auto;
}

.coming-icon {
  width:110px; height:110px; border-radius:28px;
  display:flex; align-items:center; justify-content:center;
  font-size:3rem; margin-bottom:24px;
  animation:iconPulse 2.5s ease-in-out infinite;
}
.challenges-icon {
  background:rgba(61,143,224,.15); border:2px solid rgba(61,143,224,.35);
  color:var(--blue-light);
}
.store-icon {
  background:rgba(255,139,46,.15); border:2px solid rgba(255,139,46,.35);
  color:var(--orange-light);
}
@keyframes iconPulse {
  0%,100%{ transform:scale(1); }
  50%    { transform:scale(1.06); }
}

.coming-badge {
  background:rgba(61,143,224,.15); color:var(--blue-light);
  border:1px solid rgba(61,143,224,.3);
  padding:6px 20px; border-radius:99px;
  font-size:.9rem; font-weight:700; margin-bottom:16px;
  letter-spacing:1px;
}
.store-badge {
  background:rgba(255,139,46,.15); color:var(--orange-light);
  border-color:rgba(255,139,46,.3);
}

.coming-title {
  font-size:clamp(2rem, 5vw, 3.5rem);
  font-weight:900; color:var(--white); margin-bottom:20px;
}
.coming-desc {
  font-size:1.1rem; color:rgba(255,255,255,.7);
  line-height:1.8; margin-bottom:36px;
}

.coming-features {
  display:flex; gap:14px; flex-wrap:wrap;
  justify-content:center; margin-bottom:40px;
}
.cf-item {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  color:var(--white); padding:10px 18px;
  border-radius:12px; font-size:.9rem; font-weight:600;
}
.cf-item i { color:var(--yellow); }

.notify-form {
  display:flex; gap:10px; width:100%; max-width:480px;
  flex-wrap:wrap; justify-content:center;
}
.notify-input {
  flex:1; min-width:220px;
  padding:14px 20px; border-radius:99px;
  border:2px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);
  color:var(--white); font-family:'Tajawal',sans-serif;
  font-size:.95rem; outline:none; transition:var(--transition);
}
.notify-input::placeholder { color:rgba(255,255,255,.45); }
.notify-input:focus { border-color:var(--orange); background:rgba(255,255,255,.12); }
.notify-btn { white-space:nowrap; }

/* ===== SUBSCRIBE BANNER ===== */
.subscribe-banner {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--yellow-dark) 100%);
  padding:70px 5%;
  display:flex; align-items:center; justify-content:center;
  gap:48px; flex-wrap:wrap; text-align:center;
}
.sub-character { width:180px; flex-shrink:0; }
.sub-character img { width:100%; filter:drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.sub-content h2 {
  font-size:clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight:900; color:var(--white); margin-bottom:12px;
}
.sub-content p { color:rgba(255,255,255,.85); font-size:1.05rem; margin-bottom:24px; }
.sub-content .btn-youtube {
  background:var(--navy) !important;
  box-shadow:0 6px 24px rgba(13,27,62,.4) !important;
}
.sub-content .btn-youtube:hover { background:#0a1228 !important; }

/* ===== FOOTER ===== */
.footer { background:var(--navy); color:rgba(255,255,255,.7); padding:70px 5% 0; }
.footer-inner {
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:48px; padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-logo-img { height:56px; width:auto; margin-bottom:14px; mix-blend-mode:screen; }
.footer-logo-text { font-size:1.8rem; font-weight:900; display:inline-block; margin-bottom:12px; }
.footer-brand p {
  font-size:.95rem; line-height:1.7;
  max-width:280px; margin-bottom:20px;
}

.social-links { display:flex; gap:12px; }
.social-link {
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; transition:var(--transition);
}
.social-link.youtube { background:rgba(255,0,0,.15); color:var(--red-yt); }
.social-link.youtube:hover { background:var(--red-yt); color:var(--white); transform:translateY(-3px); }

.footer-links h4, .footer-contact h4 {
  color:var(--white); font-size:1rem; font-weight:700;
  margin-bottom:18px; padding-bottom:10px;
  border-bottom:2px solid rgba(255,139,46,.35);
}
.footer-links ul { display:flex; flex-direction:column; gap:10px; }
.footer-links a {
  color:rgba(255,255,255,.6); font-size:.9rem;
  transition:var(--transition); display:flex; align-items:center; gap:8px;
}
.footer-links a::before { content:'›'; color:var(--orange); font-size:1.2rem; }
.footer-links a:hover { color:var(--yellow); padding-right:4px; }

.footer-contact p {
  display:flex; align-items:center; gap:10px;
  font-size:.9rem; margin-bottom:10px;
}
.footer-contact i { color:var(--orange); }
.footer-note { color:rgba(255,255,255,.4) !important; font-size:.85rem !important; margin-top:12px; }

.footer-bottom {
  text-align:center; padding:20px 0;
  color:rgba(255,255,255,.3); font-size:.85rem;
}

/* ===== FADE-UP ===== */
.fade-up {
  opacity:0; transform:translateY(30px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns:1fr; text-align:center; }
  .hero-character { order:-1; }
  .character-img { width:260px; }
  .character-ring { display:none; }
  .float-badge { display:none; }
  .hero-actions, .hero-stats { justify-content:center; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .hero-logo-img { max-width:240px; display:block; margin-inline:auto; }
}
@media (max-width: 600px) {
  .nav-links { display:none; flex-direction:column; position:fixed; inset-inline:0; top:70px; background:var(--navy); padding:24px; gap:4px; }
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  .hero { padding:90px 5% 50px; }
  .videos-grid { grid-template-columns:1fr; }
  .coming-features { flex-direction:column; align-items:center; }
  .footer-inner { grid-template-columns:1fr; }
  .subscribe-banner { flex-direction:column; gap:24px; }
  .sub-character { width:120px; }
  .hero-logo-img { max-width:200px; }
}
