@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Sleek Modern Mixed Palette */
  --bg-light: #f4f6f9;      /* Light Grey */
  --bg-dark: #121519;       /* Deep Dark Grey (Almost Black) */
  --bg-card: #ffffff;       /* White */
  --bg-card-dark: #1e2329;  /* Dark Component Box */
  
  --accent-light: #00a8ff;  /* Light Blue */
  --accent-dark: #09529b;   /* Dark Blue */
  
  --text-primary: #121519;
  --text-secondary: #56616e;
  --text-light: #f4f6f9;
  --text-light-muted: #a4b0be;

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent-light) var(--bg-dark);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-arabic); }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue { color: var(--accent-light); }
.text-dark-blue { color: var(--accent-dark); }

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

section { padding: 6rem 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent-dark);
}

.btn-outline:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Header Navbar - Sleek White to Dark */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.98);
}

/* Hero Section Refinement */
.hero {
  background: radial-gradient(circle at 0% 0%, #ffffff 0%, #f0f4f8 50%, #e1e8f0 100%);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.6;
  animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(50px, 30px); }
}

.hero-image-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  filter: blur(40px);
}

/* Float Animation Enrichment */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.glass-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.logo img {
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--bg-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-light);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.lang-toggle {
  background: var(--bg-dark);
  color: var(--text-light);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  margin-left: 1rem;
}
html[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 1rem; }

.lang-toggle:hover {
  background: var(--accent-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bg-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mixed Panels / Cards */
.dark-panel {
  background: var(--bg-dark);
  color: var(--text-light);
}

.dark-panel p { color: var(--text-light-muted); }

.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Product Cards (Added for robust styling) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: rgba(0,168,255,0.2);
}
.product-img-slider {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--bg-light);
  overflow: hidden;
}
.product-img-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-img-slider img.active { opacity: 1; }
.product-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
}
.dot {
  width: 8px; height: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active { background: var(--accent-dark); }

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--accent-light);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 1rem;
  display: block;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); } /* Make it white in footer */

.footer-widget h4 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-light-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); padding-left: 5px; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light-muted);
  font-size: 0.9rem;
}

/* Animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; animation: slideUp 0.8s ease forwards; }

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

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-wrapper { position: relative; }
  .nav-links {
    position: fixed; top: 70px; right: -100%;
    width: 100%; height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column; padding: 2rem;
    transition: var(--transition); justify-content: flex-start;
  }
  .nav-links a { color: var(--text-light); font-size: 1.2rem; }
  .nav-links.nav-active { right: 0; }
  .mobile-menu-btn { display: block; color: var(--bg-dark); }
}
