/* ZUHAL Orbit — Light Theme (Space + Gold identity) */
:root {
  --accent: #b8860b;            /* dark gold — readable on light */
  --accent-2: #d4a843;          /* bright gold */
  --accent-pale: #f6ecd2;       /* pale gold tint */
  --accent-glow: rgba(212, 168, 67, 0.30);
  --space: #1f2d4d;             /* deep navy — "space" identity */
  --space-2: #31456e;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #fdf9ef;
  --card: #ffffff;
  --border: rgba(184, 134, 11, 0.16);
  --border-2: rgba(31, 45, 77, 0.10);
  --text: #1b2130;
  --text-muted: #5a6478;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Tajawal', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Subtle star-field dots on light */
.stars-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(rgba(184, 134, 11, 0.10) 1px, transparent 1px),
    radial-gradient(rgba(31, 45, 77, 0.07) 1px, transparent 1px);
  background-size: 64px 64px, 96px 96px;
  background-position: 0 0, 32px 32px;
}
.content-wrapper { position: relative; z-index: 1; }

/* Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
}
.nav-logo { width: 42px; height: 42px; margin-inline-end: 0.5rem; }
.navbar-brand-custom {
  display: inline-flex; align-items: center;
  font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1f2d4d 0%, #b8860b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link-custom { color: var(--text-muted) !important; font-weight: 500; transition: color 0.3s; }
.nav-link-custom:hover, .nav-link-custom.active { color: var(--accent) !important; }

/* Language toggle */
.nav-lang-btn {
  color: var(--accent) !important; border: 1px solid var(--accent) !important;
  font-size: 0.85rem; padding: 4px 14px; border-radius: 50px; background: transparent;
}
.nav-lang-btn:hover { background: var(--accent) !important; color: #fff !important; }

/* Hero */
.hero-section {
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 168, 67, 0.12), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(31, 45, 77, 0.07), transparent 50%),
    var(--bg);
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, 0.16);
  animation: spinSlow 60s linear infinite;
}
.hero-ring:nth-child(1) { width: 800px; height: 800px; top: -200px; right: -300px; }
.hero-ring:nth-child(2) { width: 600px; height: 600px; top: -100px; right: -200px; animation-duration: 45s; animation-direction: reverse; }
.hero-ring:nth-child(3) { width: 400px; height: 400px; top: 0; right: -100px; animation-duration: 35s; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-title {
  font-size: 3.5rem; font-weight: 900; line-height: 1.2;
  background: linear-gradient(135deg, #1f2d4d 0%, #b8860b 55%, #d4a843 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 620px; }
.hero-logo { width: 280px; height: 280px; filter: drop-shadow(0 20px 50px rgba(184, 134, 11, 0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.btn-accent {
  background: linear-gradient(135deg, #d4a843, #b8860b);
  color: #1f2d4d; font-weight: 700; border: none;
  padding: 12px 32px; border-radius: 50px; transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #1f2d4d;
}
.btn-outline-accent {
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent;
  padding: 12px 32px; border-radius: 50px; font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* Section titles */
.section-title {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(135deg, #1f2d4d, #b8860b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 3rem; }
.section-badge { color: var(--accent); font-weight: 600; letter-spacing: 2px; }

/* Section backgrounds */
.section-alt { background: var(--bg-2); }
.section-gold { background: var(--bg-3); }

/* Cards */
.card-custom {
  background: var(--card); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 2rem; transition: all 0.4s;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(31, 45, 77, 0.04);
}
.card-custom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.card-custom:hover::before { opacity: 1; }
.card-custom:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 14px 40px rgba(31, 45, 77, 0.10);
}
.card-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.16), rgba(31, 45, 77, 0.08));
  color: var(--accent);
}

/* Stats */
.stat-number {
  font-size: 2.8rem; font-weight: 900;
  background: linear-gradient(135deg, #1f2d4d, #b8860b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.10), rgba(31, 45, 77, 0.06));
  border: 1px solid var(--border); border-radius: 24px;
}

/* Footer — deep navy "space" anchor */
.footer-custom {
  background: #1f2d4d; color: #c6cddd;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-link { color: #c6cddd; text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--accent-2); }

/* Message page */
.msg-hero { padding-top: 7rem; padding-bottom: 3rem; }
.avatar-placeholder {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, rgba(212,168,67,0.14), rgba(31,45,77,0.08));
  border: 3px dashed rgba(184, 134, 11, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 4.5rem;
}
.msg-card {
  background: var(--card); border: 1px solid var(--border-2);
  border-radius: 24px; padding: 3rem; box-shadow: 0 6px 24px rgba(31,45,77,0.06);
  position: relative;
}
.quote-mark {
  font-size: 4rem; line-height: 1; color: var(--accent-2);
  opacity: 0.5; display: block;
}
.msg-text { font-size: 1.2rem; line-height: 2; color: var(--text); min-height: 8rem; }
.msg-name { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.msg-role { color: var(--accent); font-weight: 600; letter-spacing: 1px; }

/* RTL/LTR dynamic overrides */
[dir="rtl"] .ms-auto-rtl { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .navbar-nav.ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .ms-lg-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .text-md-start { text-align: right !important; }
[dir="rtl"] .text-md-end { text-align: left !important; }
[dir="ltr"] .ms-auto-ltr { margin-left: auto !important; }
[dir="ltr"] .me-lg-2 { margin-right: 0.5rem !important; }

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .msg-card { padding: 2rem; }
  .hero-logo { width: 180px; height: 180px; }
}
