/* ==========================================================================
   Nassar Gate Labs — Luxury Dark Tech / Cyber-Minimalist Stylesheet
   ========================================================================== */

:root {
  --bg-obsidian: #05070D;
  --bg-panel: rgba(11, 16, 30, 0.68);
  --border-glow: rgba(231, 195, 106, 0.28);
  --gold-light: #FFF5CC;
  --gold: #E7C36A;
  --gold-dark: #B88728;
  --cyan: #00F0FF;
  --crimson: #E11D48;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Sub-page Guardian Eagle Intro Curtain */
body header,
body main,
body footer {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.eagle-intro-active header,
body.eagle-intro-active main,
body.eagle-intro-active footer {
  opacity: 0 !important;
  pointer-events: none;
}

/* Let the Guardian Eagle soar visibly above sub-page cards without blocking clicks */
body.has-guardian-eagle #webgl-canvas-wrap {
  z-index: 25;
}

/* Keep WebGL canvas strictly LTR & full-viewport regardless of RTL switch */
#webgl-canvas-wrap,
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  direction: ltr !important;
  pointer-events: none;
  z-index: 0;
}

/* Subtle cyber grid overlay */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 85%);
}

/* Glassmorphism Cards */
.glass-card {
  background: linear-gradient(145deg, rgba(13, 19, 36, 0.78), rgba(7, 10, 20, 0.62));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  border-color: rgba(231, 195, 106, 0.45);
  box-shadow: 0 24px 60px rgba(231, 195, 106, 0.1), inset 0 1px 0 rgba(231, 195, 106, 0.18);
}

/* Futuristic Chamfered HUD Module Card (Non-traditional) */
.cyber-module-card {
  position: relative;
  background: linear-gradient(160deg, rgba(14, 18, 30, 0.84) 0%, rgba(5, 7, 13, 0.74) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
  border: 1px solid rgba(231, 195, 106, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.cyber-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(231, 195, 106, 0.85), transparent);
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.cyber-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 195, 106, 0.65);
  box-shadow: 0 24px 55px rgba(231, 195, 106, 0.14);
}

.cyber-module-card:hover::before {
  opacity: 1;
}

.glass-nav {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 195, 106, 0.16);
}

/* Glowing Gold Luxury Buttons */
.btn-cyber-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(231, 195, 106, 0.22), rgba(184, 135, 40, 0.34));
  border: 1px solid rgba(231, 195, 106, 0.65);
  color: #FFF5CC;
  box-shadow: 0 0 22px rgba(231, 195, 106, 0.16);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, rgba(231, 195, 106, 0.36), rgba(184, 135, 40, 0.5));
  border-color: #FFF5CC;
  color: #FFFFFF;
  box-shadow: 0 0 32px rgba(231, 195, 106, 0.36);
  transform: translateY(-2px);
}

.btn-cyber-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-cyber-ghost:hover {
  border-color: rgba(231, 195, 106, 0.55);
  color: #FFF5CC;
  background: rgba(231, 195, 106, 0.08);
  transform: translateY(-2px);
}

/* Text Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, #00F0FF 55%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(180deg, #FFF5CC 0%, #E7C36A 45%, #B88728 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Preloader */
#ng-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05070D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.preloader-ring {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  border: 2px solid rgba(0, 240, 255, 0.12);
  border-top-color: #00F0FF;
  border-right-color: #2563EB;
  animation: ng-spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.22);
}

@keyframes ng-spin {
  to { transform: rotate(360deg); }
}

/* Home 3 Cinematic Scroll Sections */
.cinematic-section {
  min-height: 100vh;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05070D;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Toast Notification */
#ng-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  max-width: 24rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] #ng-toast {
  right: auto;
  left: 1.5rem;
}

#ng-toast.show {
  transform: translateY(0);
  opacity: 1;
}
