/* ═══════════════════════════════════════════════════════
   FATHI USTA — Welcome Page — Blur Design, No Animations
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'CustomFont';
  src: url('/Speda.ttf') format('truetype');
  font-display: swap;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:        #C9A96E;
  --gold-bright: #E8C97A;
  --gold-deep:   #8B6914;
  --dark:        #0A0502;
  --dark-card:   rgba(10, 5, 2, 0.55);
  --glass-bg:    rgba(255, 255, 255, 0.06);
  --glass-border:rgba(201, 169, 110, 0.28);
  --blur-amount: blur(24px);
  --blur-heavy:  blur(40px);
  --radius-pill: 100px;
  --radius-card: 28px;
  --radius-lg:   20px;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.welcome-body {
  font-family: 'CustomFont', 'Cairo', sans-serif;
  background: var(--dark);
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════════════════════════════
   LANGUAGE PICKER OVERLAY
   ════════════════════════════════════════════════════════ */

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Blurred dark background */
.lang-overlay-blur {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 1, 0.82);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
}

/* Glass card */
.lang-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: rgba(20, 10, 4, 0.65);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 40px 32px 36px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 20px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(201,169,110,0.06);
}

/* Top highlight line on card */
.lang-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,201,122,0.6), transparent);
  border-radius: 100px;
}

/* ── Logo ── */
.lang-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.lang-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,169,110,0.45);
  box-shadow:
    0 0 0 6px rgba(201,169,110,0.08),
    0 8px 30px rgba(0,0,0,0.5);
  display: block;
}

/* ── Brand name ── */
.lang-brand-name {
  font-family: 'CustomFont', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(232,201,122,0.4);
  margin-bottom: 4px;
}

.lang-brand-sub {
  font-family: 'CustomFont', 'Cairo', sans-serif;
  font-size: 0.82rem;
  color: rgba(201,169,110,0.6);
  font-weight: 400;
  direction: rtl;
  margin-bottom: 0;
}

/* ── Separator ── */
.lang-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 14px;
  position: relative;
}
.lang-sep::before,
.lang-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.35));
  margin: 0 10px;
}
.lang-sep::after {
  background: linear-gradient(to left, transparent, rgba(201,169,110,0.35));
}
.lang-sep-gem {
  color: var(--gold);
  font-size: 0.65rem;
  opacity: 0.8;
}

/* ── Choose label ── */
.lang-choose-label {
  font-size: 0.72rem;
  color: rgba(212,188,154,0.5);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  line-height: 1.6;
  direction: rtl;
}

/* ── Language Buttons ── */
.lang-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  color: rgba(240,230,210,0.9);
  text-decoration: none;
  font-family: 'CustomFont', 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  direction: rtl;
}

.lang-btn:hover,
.lang-btn:focus {
  background: rgba(201,169,110,0.18);
  border-color: rgba(201,169,110,0.55);
  box-shadow: 0 4px 20px rgba(201,169,110,0.2);
  color: #fff;
  outline: none;
}

.lang-btn:active {
  background: rgba(201,169,110,0.28);
  transform: scale(0.98);
}

.lang-btn-flag {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.lang-btn-label {
  flex: 1;
  text-align: right;
}

/* Active/current language */
.lang-btn-ku  { border-left: 3px solid rgba(232,201,122,0.6); }
.lang-btn-ar  { border-left: 3px solid rgba(201,169,110,0.5); }
.lang-btn-en  { border-left: 3px solid rgba(170,140,90,0.4); }



/* ════════════════════════════════════════════════════════
   MAIN WELCOME PAGE
   ════════════════════════════════════════════════════════ */

.welcome-page {
  position: relative;
  height: 100dvh;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── VIDEO BACKGROUND ── */
.welcome-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.welcome-video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, rgba(139,90,43,0.7) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 5% 110%,  rgba(92,51,23,0.6)  0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 95% 90%,  rgba(201,169,110,0.2) 0%, transparent 50%),
    linear-gradient(160deg, #1A0D07 0%, #2C1A0E 35%, #0D0603 100%);
}

/* Dark overlay on video so text is readable */
.welcome-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 0, 0.48);
  z-index: 1;
}

/* ── TOP HEADER ── */
.welcome-header {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top, 0px);
}

.welcome-header-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 14px;
  background: rgba(8, 4, 1, 0.52);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.welcome-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Logo circle */
.welcome-logo-circle {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,0.45);
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.1), 0 4px 16px rgba(0,0,0,0.4);
}

.welcome-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-header-text {
  min-width: 0;
  line-height: 1.25;
}

.welcome-header-name {
  font-family: 'CustomFont', 'Cairo', sans-serif;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  font-weight: 900;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 20px rgba(232,201,122,0.35);
}

.welcome-header-sub {
  font-size: 0.62rem;
  color: rgba(201,169,110,0.5);
  letter-spacing: 2px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Language switcher in header */
.welcome-lang-switch {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-switch-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(212,188,154,0.6);
  font-family: 'CustomFont', 'Cairo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.5px;
}

.lang-switch-btn.active,
.lang-switch-btn:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1A0D07;
  box-shadow: 0 2px 10px rgba(201,169,110,0.3);
}

/* ── MAIN SECTION ── */
.welcome-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  padding-bottom: max(env(safe-area-inset-bottom, 16px), 20px);
  gap: 14px;
  /* Leave visual space for the video to show through */
}

/* Spacer so video shows in the upper portion */
.welcome-video-area {
  flex: 1;
}

/* ── MENU BUTTON WRAPPER ── */
.welcome-menu-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* ── MENU BUTTON ── */
.welcome-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border-radius: var(--radius-pill);

  /* Blur glass style */
  background: rgba(201, 169, 110, 0.18);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: 1.5px solid rgba(201,169,110,0.45);

  color: #FAF4EB;
  font-family: 'CustomFont', 'Cairo', sans-serif;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;

  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.1) inset;

  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

/* Top shine on menu button */
.welcome-menu-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  pointer-events: none;
}

.welcome-menu-btn:hover {
  background: rgba(201,169,110,0.32);
  border-color: rgba(232,201,122,0.7);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    0 0 30px rgba(201,169,110,0.2),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  color: #fff;
}

.welcome-menu-btn:active {
  transform: scale(0.97);
}

.menu-btn-icon {
  font-size: 1.4rem;
}

.menu-btn-text {
  font-weight: 900;
}

.menu-btn-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* ── SOCIAL MEDIA BAR ── */
.welcome-social-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
    margin-bottom: 50px;

}

.welcome-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 10px 18px;

  /* Blur glass pill */
  background: rgba(8, 4, 1, 0.5);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-pill);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset;

  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.welcome-socials::-webkit-scrollbar { display: none; }

/* ── Social buttons ── */
.soc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  color: rgba(240,230,210,0.8);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 900;
  font-family: 'CustomFont', serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.soc-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.soc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

.soc-btn:active {
  transform: scale(0.95);
}

/* Platform colors on hover */
.soc-fb:hover   { background: rgba(24,119,242,0.75);  border-color: rgba(24,119,242,0.6);  color: #fff; }
.soc-ig:hover   { background: linear-gradient(135deg, rgba(214,71,152,0.75), rgba(253,144,8,0.75)); border-color: rgba(253,144,8,0.5); color: #fff; }
.soc-tt:hover   { background: rgba(20,20,20,0.9);     border-color: rgba(255,255,255,0.3);  color: #fff; }
.soc-snap:hover { background: rgba(255,234,0,0.8);    border-color: rgba(255,234,0,0.6);   color: #111; }
.soc-wa:hover   { background: rgba(37,211,102,0.75);  border-color: rgba(37,211,102,0.6);  color: #fff; }
.soc-360:hover  { background: rgba(201,169,110,0.4);  border-color: rgba(201,169,110,0.7); color: #fff; }

/* 360 button is wider */
.soc-360 {
  width: auto;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--gold);
  border-color: rgba(201,169,110,0.3);
  background: rgba(201,169,110,0.08);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.soc-360 svg { width: 17px; height: 17px; }


/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .welcome-header-glass  { padding: 11px 14px; }
  .welcome-logo-circle   { width: 44px; height: 44px; }
  .welcome-header-name   { font-size: 0.85rem; }
  .lang-switch-btn       { padding: 4px 8px; font-size: 0.7rem; }
  .welcome-menu-btn      { padding: 14px 28px; font-size: 0.95rem; }
  .soc-btn               { width: 38px; height: 38px; }
  .soc-btn svg           { width: 17px; height: 17px; }
  .welcome-socials       { gap: 6px; padding: 9px 12px; }
  .lang-card             { padding: 30px 22px 28px; }
  .lang-logo-img         { width: 76px; height: 76px; }
  .lang-brand-name       { font-size: 1.15rem; }
}

@media (max-width: 340px) {
  .soc-btn               { width: 34px; height: 34px; }
  .soc-btn svg           { width: 15px; height: 15px; }
  .welcome-socials       { gap: 4px; padding: 8px 10px; }
  .soc-360               { padding: 0 8px; font-size: 0.62rem; }
}

@media (max-height: 600px) {
  .welcome-main          { gap: 10px; padding-bottom: 16px; }
  .welcome-menu-btn      { padding: 13px 32px; font-size: 1rem; }
  .welcome-socials       { padding: 8px 14px; gap: 6px; }
  .soc-btn               { width: 38px; height: 38px; }
}

@media (max-height: 480px) {
  .welcome-header-glass  { padding: 9px 16px; }
  .welcome-logo-circle   { width: 38px; height: 38px; }
  .soc-btn               { width: 34px; height: 34px; }
  .welcome-main          { gap: 8px; }
}

/* ── No motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
