/* Importing Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Outfit:wght@200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Light Luxury Theme with Metallic Gold Accents */
:root {
  --primary-navy: #0A2E63;
  --primary-navy-dark: #051A3B;
  --primary-navy-deep: #030F22;
  
  --primary-dark: #0F1E36;
  --primary-dark-rgb: 15, 30, 54;
  --text-muted: #52647C;
  --accent-gold: #D4AF37;         /* Metallic Luxury Gold */
  --accent-gold-dark: #B38F24;    /* Metallic Gold Darker tone */
  --accent-gold-glow: rgba(212, 175, 55, 0.2);
  --accent-gold-light: #F9F6F0;   /* Champagne white */
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FC;
  --bg-tertiary: #FCFAF7;
  
  --glass-shadow: 0 10px 40px -10px rgba(15, 30, 54, 0.06), 0 1px 3px rgba(15, 30, 54, 0.02);
  --glass-shadow-hover: 0 20px 50px -15px rgba(212, 175, 55, 0.15), 0 1px 4px rgba(212, 175, 55, 0.08);

  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --transition-speed: 0.4s;
  
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--primary-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-speed) ease;
  font-family: var(--font-ar); /* Default Cairo Font for Arabic */
}

/* Custom Selection */
::selection {
  background: var(--accent-gold-light);
  color: var(--primary-dark);
}

/* Dynamic Radial Mouse Glow (Very subtle on Light mode) */
.mouse-glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.06), transparent 45%);
  z-index: 1;
}

/* Canvas background for Three.js Globe */
#globe-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Splash Screen / Opening Presentation */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.splash-logo-box {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-logo {
  max-width: 180px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(15, 30, 54, 0.08));
}

.splash-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}

.splash-title-ar {
  font-family: var(--font-ar);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

.splash-title-en {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.splash-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Main Layout Wrapper */
.layout-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header Section */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

/* Logo container styling */
.logo-container {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-logo {
  max-width: 190px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(15, 30, 54, 0.06));
  animation: float-animation 6s ease-in-out infinite;
}

/* Clean glow under logo */
.logo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* Mirror reflection effect below logo */
.logo-reflection {
  position: absolute;
  bottom: -35px;
  max-width: 190px;
  height: auto;
  transform: scaleY(-0.35) translateY(10px);
  opacity: 0.08;
  filter: blur(2px);
  mask-image: linear-gradient(to top, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
  animation: float-animation-reflection 6s ease-in-out infinite;
}

/* Floating animation keys */
@keyframes float-animation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes float-animation-reflection {
  0% { transform: scaleY(-0.35) translateY(10px); }
  50% { transform: scaleY(-0.35) translateY(26px); }
  100% { transform: scaleY(-0.35) translateY(10px); }
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

/* Cinematic text animations & styles */
.badge {
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 1.25rem;
  background: var(--accent-gold-light);
  padding: 6px 24px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: inline-block;
  letter-spacing: 0px;
  font-size: 0.95rem;
  font-weight: 600;
}

.headline-sub {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.headline-main {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: 0;
}

.headline-en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.headline-desc {
  font-size: 1.15rem;
  font-weight: 400;
  max-width: 580px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Glassmorphism Cards Styles - Unified Logo Navy Blue Theme */
.glass-card {
  background: var(--primary-navy);
  background: linear-gradient(135deg, var(--primary-navy) 0%, #03122B 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important; /* Gold tint border */
  border-radius: 20px;
  color: #FFFFFF;
  box-shadow: 0 10px 30px -10px rgba(10, 46, 99, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold) !important;
  box-shadow: 0 20px 45px -12px rgba(10, 46, 99, 0.35), 0 0 1px 1px var(--accent-gold) inset !important;
}

/* Accelerated Golden sweep light animation on hover (Snappy & Crisp) */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 25%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.0) 75%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.glass-card:hover::before {
  left: 150%;
}

/* Trust Grid styling */
.trust-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 4rem;
}

.trust-card {
  padding: 2.25rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* White background icon circle matching the contact card */
.trust-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.trust-card:hover .trust-icon-wrapper {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25);
}

.trust-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-gold-dark);
}

.trust-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF; /* High-contrast white */
}

/* Contact Card Container */
.contact-container {
  width: 100%;
  margin-bottom: 4rem;
}

/* Reconstructed Horizontal Contact Card styling */
.contact-card.logo-navy-card {
  padding: 2.25rem 3rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-radius: 20px !important;
  background: var(--primary-navy) !important;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #03122B 100%) !important;
}

.contact-card.logo-navy-card::after {
  display: none; /* disable vertical middle divider */
}

/* Column dimensions */
.contact-column-left {
  width: 38%;
}

.contact-column-center {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-column-right {
  width: 38%;
}

/* List item layouts inside cards */
.horizontal-contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-column-left .horizontal-contact-item:last-child,
.contact-column-right .horizontal-contact-item:last-child {
  margin-bottom: 0;
}

/* White rectangle icon box */
.icon-box-round {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #FFFFFF;
  border: 1px solid rgba(15, 30, 54, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.contact-item-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold-dark);
}

/* Label & Values */
.horizontal-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.horizontal-text {
  text-align: right; /* Statically RTL Arabic Alignments */
}

.logo-navy-card .contact-label {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-navy-card .contact-value {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
}

.logo-navy-card .contact-value a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-navy-card .contact-value a:hover {
  color: var(--accent-gold);
}

/* Center Badge Circle (White with double gold rings) */
.center-badge-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

/* Dashed inner ring */
.center-badge-ring {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.center-badge-inner {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 10px 25px rgba(15, 30, 54, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 2;
}

.center-badge-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-gold-dark);
}

.center-badge-inner span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
}

/* Footer styles */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(15, 30, 54, 0.05);
  width: 100%;
}

.footer-logo-small {
  max-width: 50px;
  height: auto;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo-small:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .trust-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .layout-container {
    padding: 1.5rem;
  }
  
  .headline-main {
    font-size: 2.6rem;
  }
  
  .headline-en {
    font-size: 1.4rem;
  }
  
  .main-logo {
    max-width: 160px;
  }
  
  .logo-reflection {
    max-width: 160px;
    bottom: -30px;
  }
  
  .splash-title-ar {
    font-size: 1.8rem;
  }
  
  .splash-title-en {
    font-size: 1.1rem;
  }
  
  /* Responsive stacking layout for Contact Card */
  .contact-card.logo-navy-card {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem;
    align-items: center;
  }
  
  .contact-column-left,
  .contact-column-center,
  .contact-column-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .contact-column-left .horizontal-contact-item,
  .contact-column-right .horizontal-contact-item {
    justify-content: center;
    width: 100%;
  }
  
  .contact-column-left .horizontal-text,
  .contact-column-right .horizontal-text {
    text-align: center !important;
  }
  
  .contact-column-left .horizontal-contact-item,
  .contact-column-right .horizontal-contact-item {
    flex-direction: row-reverse; /* Always Arabic RTL in mobile row stack */
  }
}

@media (max-width: 480px) {
  .trust-section {
    grid-template-columns: 1fr;
  }
  
  .headline-main {
    font-size: 2rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 4px 18px;
  }
  
  .center-badge-circle {
    width: 110px;
    height: 110px;
  }
  
  .center-badge-inner {
    width: 86px;
    height: 86px;
  }
}
