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

:root {
  --navy: #0A1F44;
  --dark-navy: #07152E;
  --gold: #F4C400;
  --gold-bright: #FFC107;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Set scroll behaviour and scrollbars */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark-navy);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

/* Base Body Styles */
body {
  font-family: 'Outfit', 'Cairo', sans-serif;
  background-color: var(--dark-navy);
  color: #FFFFFF;
  overflow-x: hidden;
}

body.lang-ar {
  font-family: 'Cairo', sans-serif;
}

/* Smooth page transitions for translation */
.fade-transition {
  transition: opacity 0.3s ease-in-out;
}

.fade-out {
  opacity: 0;
}

/* Typography styles */
.text-glow {
  text-shadow: 0 0 10px rgba(244, 196, 0, 0.3);
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(10, 31, 68, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(244, 196, 0, 0.3);
  box-shadow: 0 12px 40px 0 rgba(244, 196, 0, 0.08);
  transform: translateY(-5px);
}

.glass-nav {
  background: rgba(7, 21, 46, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.glass-nav-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* Background floating animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-delayed {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float-1 {
  animation: float 8s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-delayed 10s ease-in-out infinite;
}

/* Animated gradient background */
.mesh-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(10, 31, 68, 0.6) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(244, 196, 0, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(7, 21, 46, 0.8) 0%, transparent 100%);
}

/* Scroll reveal utility classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: translate(0);
}

/* Testimonial slider custom animations and scroll */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom RTL Adjustments */
body.lang-ar .rtl-flip {
  transform: scaleX(-1);
}

/* Custom styled inputs for Glassmorphism Forms */
.glass-input {
  background: rgba(7, 21, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transition: var(--transition-smooth);
}

.glass-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(244, 196, 0, 0.2);
  background: rgba(10, 31, 68, 0.8);
}

/* Custom Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(10, 31, 68, 0.95);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.lang-ar .toast-notification {
  right: auto;
  left: 24px;
}

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

/* Blog Content modal reader styling */
.blog-modal-content {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--navy);
}

/* Button styles */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(244, 196, 0, 0.2);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 196, 0, 0.4);
}

.btn-secondary {
  border: 2px solid var(--gold);
  color: #FFFFFF;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 196, 0, 0.3);
}

/* Floating WhatsApp widget */
.whatsapp-widget {
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
