/* ============================================
   ALAJWAD - BLACK & GOLD THEME
   Luxurious and Sophisticated Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;500;600&display=swap');
/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* === PRIMARY COLORS === */
  --color-black: #000000;
  --color-deep-black: #0a0a0a;
  --color-charcoal: #1a1a1a;

  /* === GOLD GRADIENT COLORS === */
  --color-gold-dark: #8B7500;
  --color-gold-medium: #B8860B;
  --color-gold: #DAA520;
  --color-gold-light: #F4D03F;
  --color-gold-bright: #FFD700;

  /* === COMPLEMENTARY COLORS === */
  --color-bronze: #CD7F32;
  --color-champagne: #F7E7CE;
  --color-dark-gold: #856404;

  /* === BACKGROUND & SURFACES === */
  --color-bg-primary: #000000;
  --color-bg-secondary: #0a0a0a;
  --color-bg-card: rgba(26, 26, 26, 0.6);
  --color-bg-overlay: rgba(0, 0, 0, 0.85);

  /* === TEXT COLORS === */
  --color-text-primary: #F4D03F;
  --color-text-secondary: #DAA520;
  --color-text-muted: #B8860B;
  --color-text-light: #e8e8e8;

  /* === TYPOGRAPHY === */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.875rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1rem;
  --font-size-md: 1.1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* === SPACING === */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;
  --spacing-4xl: 4rem;
  --spacing-5xl: 5rem;

  /* === LAYOUT === */
  --container-max-width: 520px;
  --container-padding: 3rem 1.5rem;

  /* === BORDERS & RADIUS === */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-width: 1px;
  --border-width-thick: 2px;

  /* === SHADOWS === */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-strong: 0 12px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow-gold: 0 0 40px rgba(218, 165, 32, 0.4);
  --shadow-glow-gold-intense: 0 0 60px rgba(244, 208, 63, 0.5);

  /* === EFFECTS === */
  --blur-soft: 12px;
  --blur-strong: 20px;
  --transition-fast: 0.25s;
  --transition-medium: 0.4s;
  --transition-slow: 0.6s;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);

  /* === LOGO & ICONS === */
  --logo-width: 20vw;
  --logo-width-mobile: 20vw;
  --logo-width-small: 20vw;
  --icon-size: 22px;

  /* === ANIMATIONS === */
  --animation-duration-fast: 0.8s;
  --animation-duration-medium: 1.2s;
  --animation-duration-slow: 1.8s;
  --animation-delay-1: 0.2s;
  --animation-delay-2: 0.4s;
  --animation-delay-3: 0.6s;
  --animation-delay-4: 0.8s;
  --animation-delay-5: 1s;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-light);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BACKGROUND CONTAINER
   ============================================ */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(218, 165, 32, 0.08) 0%, transparent 50%),
  radial-gradient(ellipse at 70% 80%, rgba(184, 134, 11, 0.06) 0%, transparent 60%),
  radial-gradient(circle at 50% 50%, rgba(139, 117, 0, 0.04) 0%, transparent 70%),
  linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  animation: goldShimmer 30s ease-in-out infinite alternate;
}

@keyframes goldShimmer {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.95;
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    filter: brightness(0.98);
  }
}

/* Subtle texture overlay */
.background-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(218, 165, 32, 0.02) 2px,
      rgba(218, 165, 32, 0.02) 4px
    );
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(244, 208, 63, 0.8), rgba(218, 165, 32, 0) 70%);
  border-radius: 50%;
  animation: floatGold 20s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.6);
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 16s;
  top: 15%;
}
.particle:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
  animation-duration: 20s;
  top: 65%;
}
.particle:nth-child(3) {
  left: 70%;
  animation-delay: 6s;
  animation-duration: 18s;
  top: 30%;
}
.particle:nth-child(4) {
  left: 90%;
  animation-delay: 9s;
  animation-duration: 17s;
  top: 80%;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 12s;
  animation-duration: 19s;
  top: 90%;
}
.particle:nth-child(6) {
  left: 85%;
  animation-delay: 15s;
  animation-duration: 21s;
  top: 40%;
}

@keyframes floatGold {
  0%, 100% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translate(-100px, -140px) scale(1.3);
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  position: relative;
  z-index: 2;
}

.content-wrapper {
  width: 100%;
  max-width: var(--container-max-width);
  opacity: 0;
  transform: translateY(40px);
  animation: contentReveal var(--animation-duration-medium) var(--easing) var(--animation-delay-1) forwards;
}

@keyframes contentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOGO SECTION
   ============================================ */
.logo-container {
  text-align: center;
  animation: logoEntrance 0.6s var(--easing) 0.1s backwards;
  position: relative;
  margin-bottom: var(--spacing-xl);
}

/* Glowing aura behind logo */
.logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.25), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: goldenPulse 5s ease-in-out infinite;
}

@keyframes goldenPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.6;
  }
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    /* Removed filter: blur(6px); - this is expensive! */
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.logo-svg {
  width: var(--logo-width);
  min-width: 150px;
  max-width: 300px;
  height: auto;

  transition: all var(--transition-slow) var(--easing);
}

.logo-svg:hover {
  filter:
    drop-shadow(0 6px 16px rgba(218, 165, 32, 0.5))
    drop-shadow(0 0 30px rgba(244, 208, 63, 0.3));
  transform: scale(1.03) translateY(-6px);
}

.tagline {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
  filter: drop-shadow(0 2px 10px rgba(218, 165, 32, 0.4));
}

.description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  width: 120px;
  height: var(--border-width-thick);
  background: linear-gradient(90deg,
  transparent,
  var(--color-gold-dark),
  var(--color-gold),
  var(--color-gold-light),
  var(--color-gold),
  var(--color-gold-dark),
  transparent
  );
  margin: var(--spacing-3xl) auto;
  position: relative;
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
  animation: dividerGlow 3s ease-in-out infinite;
}

@keyframes dividerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
  }
  50% {
    box-shadow: 0 0 35px rgba(244, 208, 63, 0.7);
  }
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold-dark));
  border: 1px solid var(--color-gold-light);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 12px rgba(218, 165, 32, 0.7),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.divider::before {
  left: -18px;
}

.divider::after {
  right: -18px;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.links-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-4xl);
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.2rem;
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--blur-soft));
  border: var(--border-width) solid rgba(218, 165, 32, 0.3);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  transition: all var(--transition-medium) var(--easing);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Gold border glow on hover */
.social-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg,
  var(--color-gold-bright),
  var(--color-gold),
  var(--color-gold-dark),
  var(--color-gold),
  var(--color-gold-bright)
  );
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: opacity var(--transition-medium) var(--easing);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
  background-size: 200% 200%;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.social-link:hover::before {
  opacity: 0.6;
}

/* Shimmer effect */
.social-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 208, 63, 0.25),
    transparent
  );
  transition: left var(--transition-slow) ease;
}

.social-link:hover::after {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--color-gold-light);
  background: rgba(26, 26, 26, 0.85);
  box-shadow:
    var(--shadow-medium),
    var(--shadow-glow-gold),
    0 0 40px rgba(244, 208, 63, 0.4);
}

.link-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.link-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--color-gold);
  transition: all 0.5s var(--easing);
  filter: drop-shadow(0 2px 6px rgba(218, 165, 32, 0.4));
}

.social-link:hover .link-icon {
  transform: scale(1.25) rotate(-10deg);
  color: var(--color-gold-light);
  filter: drop-shadow(0 4px 12px rgba(244, 208, 63, 0.7));
}

/* Staggered entrance animations */
.social-link:nth-child(1) {
  animation: linkSlideIn var(--animation-duration-fast) var(--easing) var(--animation-delay-3) backwards;
}

.social-link:nth-child(2) {
  animation: linkSlideIn var(--animation-duration-fast) var(--easing) var(--animation-delay-4) backwards;
}

.social-link:nth-child(3) {
  animation: linkSlideIn var(--animation-duration-fast) var(--easing) var(--animation-delay-5) backwards;
}

.social-link:nth-child(4) {
  animation: linkSlideIn var(--animation-duration-fast) var(--easing) 1.1s backwards;
}

@keyframes linkSlideIn {
  from {
    opacity: 0;
    transform: translateX(-100px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  animation: footerFadeIn var(--animation-duration-medium) var(--easing) 1.3s backwards;
  position: relative;
  padding-top: var(--spacing-lg);
}

/* Decorative top border with gold */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
}

@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-quote {
  font-family: 'Cairo', 'Montserrat', serif;
  font-size: var(--font-size-xl);
  font-style: normal;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-medium));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
  line-height: 1.8;
  filter: drop-shadow(0 2px 10px rgba(218, 165, 32, 0.3));
  position: relative;
  direction: rtl;
}

.footer-quote::before,
.footer-quote::after {
  content: '"';
  font-size: 1.6em;
  color: var(--color-gold-dark);
  opacity: 0.4;
  font-family: Georgia, serif;
}

.footer-text {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  direction: rtl;
}

.footer-highlight {
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-semibold);
  filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.5));
}

/* ============================================
   GLOW EFFECT (Mouse Follower)
   ============================================ */
.glow-effect {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(218, 165, 32, 0.2),
    rgba(244, 208, 63, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
  z-index: 0;
  filter: blur(50px);
  mix-blend-mode: screen;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .glow-effect {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .glow-effect {
    display: none !important;
  }

  .social-link:active {
    transform: scale(0.97);
  }
}

@media (max-width: 640px) {
  :root {
    --logo-width: var(--logo-width-mobile);
    --font-size-xl: 1.15rem;
    --font-size-md: 1rem;
    --font-size-base: 0.95rem;
    --container-padding: 2.5rem 1.25rem;
    --spacing-4xl: 3rem;
  }

  .logo-container::before {
    width: 350px;
    height: 350px;
  }

  .social-link {
    padding: 1.25rem 1.9rem;
  }

  .description {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  :root {
    --logo-width: var(--logo-width-small);
    --font-size-xl: 1rem;
    --font-size-lg: 1.05rem;
  }

  .logo-container::before {
    width: 280px;
    height: 280px;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
.social-link:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 5px;
  border-color: var(--color-gold);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .social-link {
    border-width: var(--border-width-thick);
  }

  .divider {
    height: calc(var(--border-width-thick) * 2);
  }
}
