@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  /* ─ Core palette ─ */
  --dark: #111a0b;
  --dark-2: #1a2412;
  --dark-3: #243118;
  --dark-4: #2e3d22;
  --accent: #c9a84c;
  --accent-2: #e8c97a;
  --accent-dim: rgba(201, 168, 76, 0.12);
  --light: #f5f0e8;
  --light-2: #ebe5d9;
  --white: #ffffff;
  --muted: #8a9a78;
  --text-soft: rgba(255, 255, 255, 0.7);

  /* ─ Glass & depth ─ */
  --glass: rgba(17, 26, 11, 0.82);
  --glass-light: rgba(245, 240, 232, 0.65);
  --glass-card: rgba(17, 26, 11, 0.55);

  /* ─ Gradients ─ */
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e8c97a 50%, #c9a84c 100%);
  --gradient-dark: linear-gradient(180deg, #111a0b 0%, #1a2412 100%);
  --gradient-fade: linear-gradient(180deg, transparent 0%, rgba(17, 26, 11, 0.95) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 70%);

  /* ─ Spacing & shape ─ */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --nav-h: 76px;

  /* ─ Shadows ─ */
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.15);
  --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.08);

  /* ─ Transitions ─ */
  --trans: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--dark);
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

[data-parallax] {
  will-change: transform;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 10px;
}

/* ═══════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: preloaderPulse 1.4s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
.t-display {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.t-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

.t-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  direction: rtl;
  text-align: right;
  line-height: 2;
  color: var(--dark);
}

.t-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  transition: background var(--trans), backdrop-filter var(--trans), box-shadow var(--trans);
}

#site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

#site-header.solid {
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--trans-fast);
}

.header-logo img:hover {
  transform: scale(1.05);
}

.header-left {
  position: absolute;
  left: 2.5rem;
  display: flex;
  align-items: center;
}

.btn-join-header {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
  transition: all var(--trans-fast);
  animation: btnGlowPulse 2s ease-in-out infinite;
  display: inline-block;
  white-space: nowrap;
}

.btn-join-header:hover {
  background: var(--white);
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
  transform: translateY(-1px);
}

@keyframes btnGlowPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.6);
    transform: scale(1.03);
  }
}

@media (max-width: 600px) {
  .header-left {
    display: none;
  }

  #site-header {
    padding: 0 1.25rem;
  }
}

/* Hamburger */
.hamburger {
  position: absolute;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  transition: background var(--trans-fast);
  z-index: 1010;
}

@media (max-width: 768px) {
  .hamburger {
    right: 1rem;
  }
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   NAV DRAWER
   ═══════════════════════════════════════ */
#nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100%;
  z-index: 999;
  background: var(--dark);
  transform: translateX(100%);
  transition: transform var(--trans);
  display: flex;
  flex-direction: column;
  padding: 110px 2.8rem 2.5rem;
  border-left: 1px solid rgba(201, 168, 76, 0.1);
  overflow-y: auto;
}

#nav-drawer.open {
  transform: translateX(0);
}

#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  margin-top: 2.2rem;
  font-weight: 700;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-drawer-link {
  display: block;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color var(--trans-fast), transform var(--trans-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.nav-drawer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--trans);
}

.nav-drawer-link:hover {
  color: var(--accent);
  transform: translateX(8px);
}

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

.nav-sub-link {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.nav-sub-link:hover {
  color: var(--accent-2);
  transform: translateX(6px);
}

.nav-drawer-footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

.reveal-delay-4 {
  transition-delay: 0.48s;
}

.reveal-delay-5 {
  transition-delay: 0.6s;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent::before {
  background: var(--gradient-gold);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.4), var(--shadow-glow);
  color: #000 !important;
}

.btn-accent:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  border-radius: 30px;
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title.light {
  color: var(--white);
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ─── Glass card ─── */
.glass-card {
  background: var(--glass-card);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════
   FLOATING CHAT BUBBLE
   ═══════════════════════════════════════ */
.float-chat {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.7rem 1.3rem 0.7rem 0.9rem;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow), 0 0 0 1px rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
}

.float-chat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--shadow-glow);
  background: var(--dark-2);
}

.float-chat svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand img {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.footer-col a:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  #nav-drawer {
    width: 100%;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .float-chat span {
    display: none;
  }

  .float-chat {
    padding: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background var(--trans-fast);
  }

  .float-chat.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}