@font-face {
  font-family: 'NeueMontrealArabic';
  src: url('PPNeueMontrealArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'NeueMontrealArabic';
  src: url('PPNeueMontrealArabic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'NeueMontrealArabic';
  src: url('PPNeueMontrealArabic-Thin.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

:root {
  --primary: #001D4D;
  --primary-light: #003380;
  --accent: #0071E3;
  --black: #050505;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray-text: #666666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --section-bg: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.45);
  --nav-bg: rgba(255, 255, 255, 0.8);
  
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -5px rgba(0, 0, 0, 0.02);
  --shadow-medium: 0 20px 50px -10px rgba(0, 0, 0, 0.08), 0 10px 20px -10px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 50px 100px -20px rgba(0, 29, 77, 0.25), 0 30px 60px -15px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 30px 60px -12px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

body.dark-mode {
  --primary: #0071E3;
  --primary-light: #4099FF;
  --accent: #00C2FF;
  --black: #FFFFFF;
  --white: #050505;
  --gray-light: #121212;
  --gray-text: #A1A1A6;
  --glass-bg: rgba(20, 20, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --section-bg: #050505;
  --card-bg: rgba(30, 30, 35, 0.6);
  --nav-bg: rgba(10, 10, 15, 0.8);
  
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-premium: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 30px 60px -15px rgba(0, 113, 227, 0.1);
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: 'NeueMontrealArabic', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Dark Mode Global Overrides */
body.dark-mode {
  background-color: var(--white);
  color: var(--black);
}

body.dark-mode .text-black, 
body.dark-mode .text-gray-900,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
  color: #FFFFFF !important;
}

body.dark-mode .text-gray-500, 
body.dark-mode .text-gray-600, 
body.dark-mode .text-gray-700,
body.dark-mode p {
  color: var(--gray-text) !important;
}

body.dark-mode .bg-white {
  background-color: #121212 !important;
}

body.dark-mode .glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

body.dark-mode .bg-gray-50, body.dark-mode .bg-gray-100 {
  background-color: #1A1A1A !important;
}

body.dark-mode footer {
  background-color: #080808 !important;
  border-color: #1A1A1A !important;
}

body.dark-mode #navbar.bg-white\/80 {
  background-color: rgba(10, 10, 15, 0.8) !important;
}

body.dark-mode input, 
body.dark-mode textarea {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

body.dark-mode .bg-white\/90 {
  background-color: rgba(20, 20, 25, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Badge & Tag Fixes for Dark Mode */
body.dark-mode .rounded-full.bg-primary\/10 {
  background-color: rgba(0, 113, 227, 0.2) !important;
  color: var(--primary-light) !important;
}

body.dark-mode .glass.rounded-full {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .text-primary {
  color: var(--primary-light) !important;
}

body.dark-mode .border-white {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .hover\:bg-white:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .hover\:border-black\/5:hover {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
  user-select: none;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.glass-dark {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-dark);
  color: var(--white);
}

.input-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: white;
  transition: all 0.4s ease;
}
.input-glass:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.hover-scale {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-scale:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--shadow-premium) !important;
  z-index: 10;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #004d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--primary), var(--primary-light), var(--black));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.3;
  transition: opacity 0.6s ease;
}
.glow-border:hover::before {
  opacity: 0.6;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
}
.blob-1 {
  width: 50vw; height: 50vw;
  background: var(--primary);
  top: -10%; right: -10%;
  animation: float 20s ease-in-out infinite;
  opacity: 0.15;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: var(--primary-light);
  top: 40%; left: -20%;
  opacity: 0.1;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -50px) scale(1.05); }
  66% { transform: translate(50px, 30px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.reveal-text {
  line-height: 1.6;
}
.reveal-text .word {
  overflow: hidden;
  display: inline-block;
  padding-bottom: 0.2em;
  margin-bottom: 0;
  vertical-align: top;
}

.float-anim-1 { animation: float-element 4s ease-in-out infinite; }
.float-anim-2 { animation: float-element 5s ease-in-out infinite 1s; }
@keyframes float-element {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.premium-card-static {
  position: relative;
  background: #001D4D !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium);
  color: white !important;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 90;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-5px);
  background: var(--black);
}

.perspective-1000 {
  perspective: 1000px;
}

.hero-main-image {
  /* Removed static transforms to prevent conflict with VanillaTilt */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Removed subtle glow to keep the design cleaner and avoid washing out the image */
.hero-image-container::after {
  display: none;
}

.float-anim-1 { animation: float-element 6s ease-in-out infinite; }
.float-anim-2 { animation: float-element 8s ease-in-out infinite 1.5s; }

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

.menu-scroll-animation {
  animation: menuScroll 25s linear infinite;
}
@keyframes menuScroll {
  0%, 10% { transform: translateY(0); }
  30%, 40% { transform: translateY(-150px); }
  60%, 70% { transform: translateY(-300px); }
  90%, 100% { transform: translateY(0); }
}

#mouse-glow {
  position: fixed;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #E5E5EA; }
::-webkit-scrollbar-thumb { background: #8E8E93; border-radius: 5px; border: 2px solid #E5E5EA; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.swiper-pagination-bullet {
  background: #C7C7CC;
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s;
}
.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}
.swiper-slide {
  height: auto;
}
/* --- 100% Comprehensive Responsiveness --- */

/* Base Typography Adjustment */
@media (max-width: 1200px) {
  h1 { font-size: 4.5rem !important; }
}

@media (max-width: 1024px) {
  h1 { font-size: 4rem !important; }
  .hero-section { text-align: center; }
  .hero-section .max-w-xl { margin-left: auto; margin-right: auto; }
  .hero-section .flex { justify-content: center; }
  .hero-section .lg\:ml-\[-50px\] { margin-left: 0 !important; }
}

@media (max-width: 768px) {
  h1 { 
    font-size: 3.2rem !important; 
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }
  
  h2 { font-size: 2.5rem !important; }
  
  .hero-section {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
  }

  section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  /* Ensure grids stack correctly */
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* Mobile Nav Fixes */
  #navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.8rem !important; }
  .text-xl { font-size: 1.1rem !important; }
  .px-6 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  
  .hero-section .flex-wrap {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-section a {
    width: 100%;
    justify-content: center;
  }

  .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Fix for horizontal scroll caused by animations */
section {
  overflow-x: hidden;
  width: 100%;
}

.hero-image-container {
  max-width: 100%;
  overflow: visible; /* Allow tilt but section hides overflow */
}


/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .mobile-menu-overlay {
  background: #050505;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
}

